From 75744b11cf0246c7ae09f4608b86e96891f9f7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 18 Nov 2025 10:19:16 +0100 Subject: [PATCH] tools: remove deprecated ESLint plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Syntax for explicit resource management and import attributes syntax are supported without it. PR-URL: https://github.com/nodejs/node/pull/60908 Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Ulises Gascón --- eslint.config.mjs | 5 ---- tools/eslint/package-lock.json | 50 ---------------------------------- tools/eslint/package.json | 2 -- 3 files changed, 57 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index d9f9d2c91d..e9466ca4a1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -18,9 +18,6 @@ import nodeCore from './tools/eslint/eslint-plugin-node-core.js'; const { globalIgnores } = await importEslintTool('eslint/config'); const { default: js } = await importEslintTool('@eslint/js'); const { default: babelEslintParser } = await importEslintTool('@babel/eslint-parser'); -const babelPluginProposalExplicitResourceManagement = - resolveEslintTool('@babel/plugin-proposal-explicit-resource-management'); -const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes'); const babelPluginSyntaxImportSource = resolveEslintTool('@babel/plugin-syntax-import-source'); const { default: jsdoc } = await importEslintTool('eslint-plugin-jsdoc'); const { default: markdown } = await importEslintTool('eslint-plugin-markdown'); @@ -106,8 +103,6 @@ export default [ babelOptions: { parserOpts: { createImportExpressions: true }, plugins: [ - babelPluginProposalExplicitResourceManagement, - babelPluginSyntaxImportAttributes, babelPluginSyntaxImportSource, ], }, diff --git a/tools/eslint/package-lock.json b/tools/eslint/package-lock.json index 23a4e8914e..d6d94b04c3 100644 --- a/tools/eslint/package-lock.json +++ b/tools/eslint/package-lock.json @@ -10,8 +10,6 @@ "dependencies": { "@babel/core": "^7.28.5", "@babel/eslint-parser": "^7.28.5", - "@babel/plugin-proposal-explicit-resource-management": "^7.27.4", - "@babel/plugin-syntax-import-attributes": "^7.27.1", "@babel/plugin-syntax-import-source": "^7.27.1", "@stylistic/eslint-plugin": "^5.6.1", "eslint": "^9.39.1", @@ -228,38 +226,6 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/plugin-proposal-explicit-resource-management": { - "version": "7.27.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-explicit-resource-management/-/plugin-proposal-explicit-resource-management-7.27.4.tgz", - "integrity": "sha512-1SwtCDdZWQvUU1i7wt/ihP7W38WjC3CSTOHAl+Xnbze8+bbMNjRvRQydnj0k9J1jPqCAZctBFp6NHJXkrVVmEA==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-explicit-resource-management instead.", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.27.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", - "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-import-source": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-source/-/plugin-syntax-import-source-7.27.1.tgz", @@ -275,22 +241,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz", - "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/template": { "version": "7.27.2", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", diff --git a/tools/eslint/package.json b/tools/eslint/package.json index de600a1073..e8d9921949 100644 --- a/tools/eslint/package.json +++ b/tools/eslint/package.json @@ -5,9 +5,7 @@ "dependencies": { "@babel/core": "^7.28.5", "@babel/eslint-parser": "^7.28.5", - "@babel/plugin-syntax-import-attributes": "^7.27.1", "@babel/plugin-syntax-import-source": "^7.27.1", - "@babel/plugin-proposal-explicit-resource-management": "^7.27.4", "@stylistic/eslint-plugin": "^5.6.1", "eslint": "^9.39.1", "eslint-formatter-tap": "^9.0.1",