加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
zjt 提交于 2022-05-09 16:08 . feat: 增加表单右上角按钮配置
{
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true,
"commonjs": true
},
"extends": [
"airbnb",
"plugin:compat/recommended",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"babel",
"jest",
"react-hooks",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "16.13.1"
},
"polyfills": [
"Promise"
]
},
"rules": {
"react/jsx-props-no-spreading": 0,
"no-use-before-define": 0,
"react/display-name": 0,
"import/extensions": 0,
"import/no-cycle": 0,
"consistent-return": 0,
"no-restricted-syntax": 0,
"import/no-extraneous-dependencies": 1,
"@typescript-eslint/no-empty-function": 1,
"typescript-eslint/no-explicit-any": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-plusplus": 0,
"no-continue": 0,
"react/no-array-index-key": 1,
"no-return-await": 1,
"import/no-unresolved": 1,
"no-await-in-loop": 1,
"no-nested-ternary": 1,
"react/jsx-no-useless-fragment": 1,
"no-shadow": 1,
"comma-dangle": [
"error",
"never"
],
"space-before-function-paren": [
0,
"always"
],
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化