Skip to content

Commit

Permalink
support tsconfig project references
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Katkov committed Mar 20, 2024
1 parent 6dda76d commit 5f189d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/eslint/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const getPlugins = (projectDependencies: string[]): ByScope<string[]> => {
projectDependencies.includes('@playwright/test') ||
projectDependencies.includes('playwright')
) {
plugins.testJest.push('playwright')
plugins.all.push('playwright')
}
return plugins
}
Expand Down Expand Up @@ -166,6 +166,9 @@ const getParserOptions = (projectDependencies: string[]): ByScope<ParserOptions>

if (projectDependencies.includes('typescript')) {
parserOptions.ts.project = true

// https://github.com/typescript-eslint/typescript-eslint/issues/2094
parserOptions.ts.EXPERIMENTAL_useProjectService = true
}
if (projectDependencies.includes('react')) {
parserOptions.all.ecmaFeatures = { jsx: true }
Expand Down

0 comments on commit 5f189d5

Please sign in to comment.