代码拉取完成,页面将自动刷新
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
},
"plugins": [
"@typescript-eslint",
],
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
],
"env": {
"browser": true,
"node": true,
},
"globals": {
"describe": true,
"it": true,
},
"settings": {
"react": {
"pragma": "React",
"version": "17",
},
"import/resolver": {
"node": {},
},
},
"rules": {
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-explicit-any": "off",
"import/no-extraneous-dependencies": "off",
"max-len": ["warn", 200],
"max-classes-per-file": "off",
"default-case": "warn",
"consistent-return": "warn",
"class-methods-use-this": "off",
"no-restricted-syntax": ["error", "WithStatement"],
"no-restricted-properties": "warn",
"no-param-reassign": "warn",
"no-continue": "off",
"no-await-in-loop": "off",
"no-mixed-operators": "warn",
"no-bitwise": "warn",
"no-prototype-builtins": "warn",
"semi-style": ["error", "first"],
"import/prefer-default-export": "off",
"import/no-cycle": "warn",
"react/prop-types": "warn",
"react/destructuring-assignment": "off",
"react/button-has-type": "warn",
"react/sort-comp": "off",
"react/no-access-state-in-setstate": "warn",
"react/state-in-constructor": "off",
"react/no-find-dom-node": "warn",
"react/no-unused-prop-types": "warn",
"react/require-default-props": "off",
"react/prefer-stateless-function": "warn",
"react/jsx-props-no-spreading": "off",
"react/default-props-match-prop-types": "off",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/label-has-associated-control": "warn",
"react/static-property-placement": "off",
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。