Skip to content

Commit a27f55d

Browse files
Fix Scope
Fix an issue where the ignore configuration didn't support directories. Directories are only supported on standalone ignore configurations, not in configurations that contain other settings (such as rules or parser options). Modernize the parser detector so that the TSConfig root dir wasn't necessary as the system can infer it based on node execution context.
1 parent ef9e02c commit a27f55d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eslint.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ export default tseslint.config(
99
...tseslint.configs.strictTypeChecked,
1010
...tseslint.configs.stylisticTypeChecked,
1111
{
12-
'files': ['**/*'],
1312
'ignores': [
1413
"bin/",
1514
"dist/",
16-
'*.guard.ts',
15+
'**/*.guard.ts',
1716
'eslint.config.mjs'
18-
],
17+
]
18+
},
19+
{
1920
'plugins': {
2021
jsdoc
2122
},
@@ -26,8 +27,7 @@ export default tseslint.config(
2627
...globals.es2021
2728
},
2829
'parserOptions': {
29-
'project': true,
30-
'tsconfigRootDir': import.meta.dirname
30+
'project': true
3131
}
3232
},
3333
'settings': {

0 commit comments

Comments
 (0)