Skip to content

Commit 033d9fd

Browse files
authored
Use projectService instead of manual project path (#16)
The project service[1] auto-detects the appropriate tsconfig.json for each file being linted, using the same TypeScript APIs that editors/IDEs use. This removes the need for consumers to have a tsconfig.json at a specific path relative to the working directory. [1] https://typescript-eslint.io/blog/project-service/
1 parent 507affa commit 033d9fd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ module.exports = {
1111
],
1212
parser: '@typescript-eslint/parser',
1313
parserOptions: {
14-
// Needed for the typescript-eslint type-based linting rules
15-
project: ['./tsconfig.json'],
14+
projectService: true,
1615
},
1716
plugins: ['@typescript-eslint', 'n', 'simple-import-sort'],
1817
rules: {

0 commit comments

Comments
 (0)