mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
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';
|
||||
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 babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes');
|
||||
@ -39,19 +40,22 @@ Module._resolveFilename = (request, parent, isMain, options) => {
|
||||
|
||||
export default [
|
||||
// #region ignores
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules/**',
|
||||
'benchmark/fixtures/**',
|
||||
'benchmark/tmp/**',
|
||||
'doc/changelogs/CHANGELOG_V1*.md',
|
||||
'!doc/changelogs/CHANGELOG_V18.md',
|
||||
'lib/punycode.js',
|
||||
'test/.tmp.*/**',
|
||||
'test/addons/??_*',
|
||||
'test/fixtures/**',
|
||||
],
|
||||
},
|
||||
globalIgnores([
|
||||
'**/node_modules/**',
|
||||
'benchmark/fixtures/**',
|
||||
'benchmark/tmp/**',
|
||||
'doc/changelogs/CHANGELOG_V1*.md',
|
||||
'!doc/changelogs/CHANGELOG_V18.md',
|
||||
'lib/punycode.js',
|
||||
'test/.tmp.*/**',
|
||||
'test/addons/??_*',
|
||||
|
||||
// We want to lint only a few specific fixtures folders
|
||||
'test/fixtures/*',
|
||||
'!test/fixtures/console',
|
||||
'!test/fixtures/v8',
|
||||
'!test/fixtures/vm',
|
||||
]),
|
||||
// #endregion
|
||||
// #region general config
|
||||
js.configs.recommended,
|
||||
|
@ -139,7 +139,7 @@ export default [
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'test/{common,wpt}/**/*.{js,mjs,cjs}',
|
||||
'test/{common,fixtures,wpt}/**/*.{js,mjs,cjs}',
|
||||
'test/eslint.config_partial.mjs',
|
||||
],
|
||||
rules: {
|
||||
|
Loading…
Reference in New Issue
Block a user