Erro "parserOptions.project has been set for @typescript-eslint/parser" — como corrigir?
Olá! Sou novo em TypeScript e estou tentando configurar o ESLint no meu projeto. Estou usando @typescript-eslint/parser e @typescript-eslint/eslint-plugin. Mas ao executar o ESLint, recebo um erro estranho:
```
Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src/index.ts.
The file must be included in at least one of the projects provided.
```
Aqui está meu .eslintrc.json:
```json
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
]
}
```
E o tsconfig.json:
```json
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"outDir": "./dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
```
O arquivo src/index.ts existe e contém