加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/meowtec/Imagine/
克隆/下载
.eslintrc 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
meowtec 提交于 2022-08-03 15:53 . fix: eslint
{
"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",
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化