代码拉取完成,页面将自动刷新
env:
browser: true
es6: true
node: true
extends:
- "eslint:recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
- "plugin:prettier/recommended"
- "prettier"
- "plugin:import/errors"
- "plugin:import/warnings"
- "plugin:import/typescript"
parser: "@typescript-eslint/parser"
parserOptions:
project: tsconfig.json
sourceType: module
plugins:
- "@typescript-eslint"
- import
- deprecation
settings: { "import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] }, "import/resolver": { typescript: {} } }
rules:
{
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": ["error", { accessibility: "explicit" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/space-within-parens": ["off", "never"],
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/no-unused-vars": "warn",
"arrow-parens": ["off", "as-needed"],
camelcase: "error",
complexity: "off",
"deprecation/deprecation": "warn",
"dot-notation": "error",
"eol-last": "off",
eqeqeq: ["error", "smart"],
"guard-for-in": "off",
"id-blacklist": ["error", "any", "Number", "number", "String", "string", "Boolean", "boolean", "Undefined"],
"id-match": "error",
"linebreak-style": "off",
"max-classes-per-file": ["error", 1],
"new-parens": "off",
"newline-per-chained-call": "off",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "off",
"no-eval": "error",
"no-invalid-this": "off",
"no-multiple-empty-lines": "off",
"no-new-wrappers": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": [ "error" ],
"no-throw-literal": "error",
"no-trailing-spaces": "off",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"quote-props": "off",
radix: "error",
"sort-imports": "error",
"spaced-comment": "error",
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。