Avatar ·

Error "parserOptions.project has been set for @typescript-eslint/parser" — how to fix?

Hi! I'm new to TypeScript and trying to set up ESLint in my project. I'm using @typescript-eslint/parser and @typescript-eslint/eslint-plugin. But when running ESLint, I get a strange error: ``` 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. ``` Here is my .eslintrc.json: ```json { "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json" }, "plugins": ["@typescript-eslint"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ] } ``` And tsconfig.json: ```json { "compilerOptions": { "target": "ES2020", "module": "commonjs", "strict": true, "esModuleInterop": true, "outDir": "./dist" }, "include": ["src/**/*"], "exclude": ["node_modules"] } ``` The file src/index.ts exists and contains