Skip to content

Commit c27b138

Browse files
Apply the ESLint configuration specific rules using globs. (#179)
With the flat configuration, globs are required to match files in subdirectories. - Apply the ESLint configuration specific rules using globs. Testing - Manually verified that the rules apply to ESLint configurations in subdirectories
1 parent 8d058f6 commit c27b138

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Apply the ESLint configuration specific rules using globs.",
4+
"packageName": "@ni/eslint-config-javascript",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/eslint-config-javascript/lib/imports.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ export const imports = defineConfig([{
387387
}
388388
}, {
389389
/*
390-
Eslint configuration file specific settings
390+
ESLint configuration file specific settings
391391
*/
392-
files: ['eslint.config.js', 'eslint.config.mjs'],
392+
files: ['**/eslint.config.js', '**/eslint.config.mjs'],
393393
extends: [importNodeEsmConfig],
394394
rules: {
395395
// eslint config files require a top-level default export
396-
'import/no-default-export': 'off',
396+
'import/no-default-export': 'off'
397397
}
398398
}]);

0 commit comments

Comments
 (0)