GeezerVison is showing github.com — tools: support explicit resource management in eslint · nodejs/node@208d6a5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: eslint.config.mjs +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,6 +18,8 @@ import nodeCore from './tools/eslint/eslint-plugin-node-core.js'; |
18 | 18 | const { globalIgnores } = await importEslintTool('eslint/config'); |
19 | 19 | const { default: js } = await importEslintTool('@eslint/js'); |
20 | 20 | const { default: babelEslintParser } = await importEslintTool('@babel/eslint-parser'); |
| 21 | +const babelPluginProposalExplicitResourceManagement = |
| 22 | + resolveEslintTool('@babel/plugin-proposal-explicit-resource-management'); |
21 | 23 | const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes'); |
22 | 24 | const babelPluginSyntaxImportSource = resolveEslintTool('@babel/plugin-syntax-import-source'); |
23 | 25 | const { default: jsdoc } = await importEslintTool('eslint-plugin-jsdoc'); |
@@ -103,6 +105,7 @@ export default [ |
103 | 105 | parserOptions: { |
104 | 106 | babelOptions: { |
105 | 107 | plugins: [ |
| 108 | + babelPluginProposalExplicitResourceManagement, |
106 | 109 | babelPluginSyntaxImportAttributes, |
107 | 110 | babelPluginSyntaxImportSource, |
108 | 111 | ], |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/eslint/package-lock.json +16Lines changed: 16 additions & 0 deletions Collapse file
Copy file name to clipboardExpand all lines: tools/eslint/package.json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | "@babel/eslint-parser": "^7.27.1", |
8 | 8 | "@babel/plugin-syntax-import-attributes": "^7.27.1", |
9 | 9 | "@babel/plugin-syntax-import-source": "^7.27.1", |
| 10 | + "@babel/plugin-proposal-explicit-resource-management": "^7.27.1", |
10 | 11 | "@stylistic/eslint-plugin-js": "^4.2.0", |
11 | 12 | "eslint": "^9.25.1", |
12 | 13 | "eslint-formatter-tap": "^8.40.0", |
|