加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 809 Bytes
一键复制 编辑 原始数据 按行查看 历史
itsun 提交于 2021-11-16 11:03 . fjs
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 6,
sourceType: "moudle",
ecmaFeatures: {
jsx: true
},
},
rules: {
// 0 1 2
semi: 'error',
"no-console": 2,
"jsx-a11y/rule-name": 2,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
env: {
browser: true,
node: true,
es6: true
},
plugins: [
"jsx-a11y",
"react",
"react-hooks",
],
extends: [
"plugin:jsx-a11y/recommended",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"airbnb", "airbnb/hooks",
],
settings: {
"import/extensions": [
".js",
".jsx"
]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化