1 Star 0 Fork 0

老崔/hain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
Heejin Lee 提交于 2018-05-13 23:24 . Fix eslint config and lint errors
{
"extends": [
"recommended/node",
"plugin:prettier/recommended",
"plugin:import/react"
],
"rules": {
"comma-dangle": ["warn", "only-multiline"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"camelcase": "off",
"object-shorthand": "off",
"guard-for-in": "warn",
"arrow-body-style": "off",
"consistent-return": "warn",
"no-throw-literal": "warn",
"quote-props": "off",
"new-cap": "off",
"default-case": "off",
"no-empty": "warn",
"curly": "off",
"padded-blocks": "off",
"no-use-before-define": "warn",
"no-param-reassign": ["error", { "props": false }],
"max-len": "off",
"no-underscore-dangle": "off",
"strict": "off",
"global-require": "off",
"no-restricted-syntax": "off",
"no-multi-spaces": "off",
"spaced-comment": "off",
"no-trailing-spaces": "off",
"key-spacing": "off",
"func-names": "off",
"no-empty-function": "off",
"no-console": "warn",
"import/no-extraneous-dependencies": "off",
"import/no-commonjs": "off",
"import/no-nodejs-modules": "off",
"no-sync": "off",
"eqeqeq": "off",
"require-yield": "off",
"class-methods-use-this": "off",
"prettier/prettier": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
},
"env": {
"jest": true,
"browser": true,
"jquery": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
},
"plugins": ["react", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ifangnet/hain.git
git@gitee.com:ifangnet/hain.git
ifangnet
hain
hain
master

搜索帮助