tools: enable linter on some fixtures file
PR-URL: https://github.com/nodejs/node/pull/57674 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
12b81dfc93
commit
0d910706ef
@ -14,6 +14,7 @@ import {
|
|||||||
} from './tools/eslint/eslint.config_utils.mjs';
|
} from './tools/eslint/eslint.config_utils.mjs';
|
||||||
import nodeCore from './tools/eslint/eslint-plugin-node-core.js';
|
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: js } = await importEslintTool('@eslint/js');
|
||||||
const { default: babelEslintParser } = await importEslintTool('@babel/eslint-parser');
|
const { default: babelEslintParser } = await importEslintTool('@babel/eslint-parser');
|
||||||
const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes');
|
const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes');
|
||||||
@ -39,19 +40,22 @@ Module._resolveFilename = (request, parent, isMain, options) => {
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
// #region ignores
|
// #region ignores
|
||||||
{
|
globalIgnores([
|
||||||
ignores: [
|
'**/node_modules/**',
|
||||||
'**/node_modules/**',
|
'benchmark/fixtures/**',
|
||||||
'benchmark/fixtures/**',
|
'benchmark/tmp/**',
|
||||||
'benchmark/tmp/**',
|
'doc/changelogs/CHANGELOG_V1*.md',
|
||||||
'doc/changelogs/CHANGELOG_V1*.md',
|
'!doc/changelogs/CHANGELOG_V18.md',
|
||||||
'!doc/changelogs/CHANGELOG_V18.md',
|
'lib/punycode.js',
|
||||||
'lib/punycode.js',
|
'test/.tmp.*/**',
|
||||||
'test/.tmp.*/**',
|
'test/addons/??_*',
|
||||||
'test/addons/??_*',
|
|
||||||
'test/fixtures/**',
|
// We want to lint only a few specific fixtures folders
|
||||||
],
|
'test/fixtures/*',
|
||||||
},
|
'!test/fixtures/console',
|
||||||
|
'!test/fixtures/v8',
|
||||||
|
'!test/fixtures/vm',
|
||||||
|
]),
|
||||||
// #endregion
|
// #endregion
|
||||||
// #region general config
|
// #region general config
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
|
@ -139,7 +139,7 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'test/{common,wpt}/**/*.{js,mjs,cjs}',
|
'test/{common,fixtures,wpt}/**/*.{js,mjs,cjs}',
|
||||||
'test/eslint.config_partial.mjs',
|
'test/eslint.config_partial.mjs',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user