Skip to content

Commit

Permalink
relative tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Katkov committed Jan 14, 2024
1 parent f608b0d commit a90921e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ overrides:
plugins:
- '@typescript-eslint'
parserOptions:
project: tsconfig.json
project: true
rules:
'@typescript-eslint/adjacent-overload-signatures': error
'@typescript-eslint/array-type':
Expand Down
2 changes: 1 addition & 1 deletion src/lib/eslint/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const getParserOptions = (projectDependencies: string[]): ByScope<ParserOptions>
}

if (projectDependencies.includes('typescript')) {
parserOptions.ts.project = 'tsconfig.json'
parserOptions.ts.project = true
}
if (projectDependencies.includes('react')) {
parserOptions.all.ecmaFeatures = { jsx: true }
Expand Down
2 changes: 1 addition & 1 deletion src/types/eslint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface ParserOptions {
jsx?: boolean
}
sourceType?: 'module' | 'script'
project?: string
project?: string | boolean
allowImportExportEverywhere?: boolean
[key: string]: JsonValue | undefined
}
Expand Down

0 comments on commit a90921e

Please sign in to comment.