Skip to content

Commit 7b081d8

Browse files
authored
chore: use project service for typescript-eslint to auto-detect tsconfig.json (#610)
* use project service to auto-detect tsconfig * exclude test fixtures
1 parent d08d260 commit 7b081d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eslint.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export default [
1212
{
1313
languageOptions: {
1414
parserOptions: {
15-
// use the nearest tsconfig from the source or fallback to the root
16-
project: ['packages/**/tsconfig.json', 'tsconfig.json']
15+
projectService: true
1716
}
1817
},
1918
rules: {

packages/core/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"isolatedDeclarations": true,
66
"declaration": true
77
},
8-
"include": ["index.ts"]
8+
"include": ["*.ts", "tooling", "tests", "addon"],
9+
"exclude": ["vitest.config.ts", "tests/**/input.ts", "tests/**/output.ts"]
910
}

0 commit comments

Comments
 (0)