My .estintrc.yaml
:
parser: "@typescript-eslint/parser"
parserOptions:
sourceType: module
project: tsconfig.json
tsconfigRootDir: ./
env:
es6: true
browser: true
node: true
mocha: true
plugins:
- "@typescript-eslint"
Despite my configuration, I am experiencing multiple errors such as:
D:\*****\project\package.json
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: package.json.
The extension for the file (.json) is non-standard. You should add "parserOptions.extraFileExtensions" to your config
I specifically want linting for .ts
and .vue
files only, not .json
files.
Which setting have I overlooked?