tools: update ESLint to v9 and use flat config

Closes: https://github.com/nodejs/node/issues/52567
PR-URL: https://github.com/nodejs/node/pull/52780
Fixes: https://github.com/nodejs/node/issues/52567
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Michaël Zasso 2024-05-23 21:45:18 +02:00 committed by GitHub
parent b9ad94b6da
commit 7e6d92c485
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1255 changed files with 16091 additions and 29665 deletions

View file

@ -9,10 +9,7 @@ common.skipIfEslintMissing();
const RuleTester = require('../../tools/node_modules/eslint').RuleTester;
const rule = require('../../tools/eslint-rules/alphabetize-errors');
new RuleTester({
parserOptions: { ecmaVersion: 6 },
env: { es6: true }
}).run('alphabetize-errors', rule, {
new RuleTester().run('alphabetize-errors', rule, {
valid: [
{ code: `
E('AAA', 'foo');