加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"extends": ["airbnb", "prettier"],
"plugins": ["react-hooks"],
"env": {
"browser": true,
"jest": true
},
"rules": {
"import/order": [
2,
{ "groups": ["parent", "sibling"], "newlines-between": "always" }
],
"prefer-promise-reject-errors": "off",
"react/jsx-filename-extension": "off",
"react/forbid-prop-types": "off",
"import/prefer-default-export": "off",
"no-plusplus": "off",
"react/prop-types": "off",
"no-return-assign": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-continue": "off",
"func-names": "off",
"no-bitwise": "off",
"consistent-return": "off",
"import/no-webpack-loader-syntax": "off",
"no-restricted-globals": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"import/resolver": {
"alias": [["core", "./core"]]
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化