| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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 | ], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 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", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments