You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When project is specified within parserOptions, we will now hard fail when parsing files that are not included within the provided tsconfig(s).
We discovered that this was a common performance pitfall, and could increase lint times by huge amounts.
To handle this, there are a few possible solutions:
Improve the includes field within your tsconfig(s) so that all the files you want to lint are included.
Create a new tsconfig.eslint.json which you pass into parserOptions.project, which includes all of the files you want to lint, e.g.:
{
// extend your base config so you don't have to redefine your compilerOptions"extends": "./tsconfig.json",
"include": [
"src/**/*.ts",
"test/**/*.ts",
"typings/**/*.ts"// etc
],
// IF (and only if) you have a mixed JS/TS codebase - you should also turn on JS support"compilerOptions": {
"allowJs": true,
"checkJs": true
}
}
If you are using non standard file extensions (i.e. .vue files), you should add the following config to your .eslintrc file:
This is a slightly expanded set of rules, intended to be used in conjunction with plugin:@typescript-eslint/recommended. These rules specifically require type information. We separated these rules into a separate config to ease adoption and to make the base recommended "fast-by-default".