我尝试将打字稿衬布设置为更漂亮,并且在更漂亮的作品中,我似乎已经失去了基本的打字稿错误检查功能。我该如何找回呢?
^应该抱怨在.value
上访问foo
?
我的tsconfig.json
{
"compilerOptions": {
"outDir": "./dist/",
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"jsx": "react",
"allowJs": true,
"sourceMap": true,
"moduleResolution": "node",
"baseUrl": "./src",
"allowSyntheticDefaultImports": true,
"paths": {
"~/*": ["./*"]
}
},
}
.eslintrc.json
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "prettier"],
"env": {
"browser": true,
"jasmine": true,
"jest": true,
"es6": true
},
"rules": {
"prettier/prettier": [
"error",
{ "singleQuote": true, "semi": false }
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/class-name-casing": ["error", { "allowUnderscorePrefix": true }],
"@typescript-eslint/interface-name-prefix": ["error", { "prefixWithI": "always", "allowUnderscorePrefix": true}],
"@typescript-eslint/no-unused-vars": ["error", { "args": "none"}],
"@typescript-eslint/no-non-null-assertion": "off",
"semi":"off"
},
"parser": "@typescript-eslint/parser"
}