【发布时间】:2020-07-09 01:37:27
【问题描述】:
我的.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"
有了它,我有很多错误,例如:
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
我没有要求检查.json 文件。
我只希望 .ts 和 .vue 文件会被检查。
我错过了哪个设置?
【问题讨论】:
-
你能解决这个问题吗?
标签: javascript typescript eslint