mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
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:
parent
b9ad94b6da
commit
7e6d92c485
1255 changed files with 16091 additions and 29665 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue