如何在 vue-cli 3 项目中禁用 ts-loader (tslint) 检查?

nac*_*cab 5 typescript vue.js vue-cli-3

当我运行yarn test:unit该进程时,它会在几秒钟后显示Type checking in progress...,并出现一长串错误。

我尝试按照建议删除eslint,但没有成功。

这是我的 tsconfig.json (我没有 tslint.json)

{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "strict": true, //noImplicitAny, noImplicitThis, alwaysStrict, strictNullChecks, strictFunctionTypes, strictPropertyInitialization
    "allowJs": true,
    "forceConsistentCasingInFileNames": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "jsx": "preserve",
    "importHelpers": true,
    "moduleResolution": "node",
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "baseUrl": ".",
    "types": ["webpack-env", "mocha", "chai"],
    "paths": {
      "@/*": ["src/*"]
    },
    "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
  },
  "include": [
    "src/**/*.ts",
    "src/**/*.tsx",
    "src/**/*.vue",
    "tests/**/*.ts",
    "tests/**/*.tsx"
  ],
  "exclude": ["node_modules"]
}
Run Code Online (Sandbox Code Playgroud)