1 Star 0 Fork 0

子不语/budget-pro-master

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
zibuyu69 提交于 2019-02-27 18:08 . 版本1.1
{
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true
},
"globals": {
"APP": true,
"window": true
},
"plugins": ["react", "import"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js"]
}
}
},
"rules": {
"no-unused-vars": [2, {
"vars": "local",
"args": "none"
}],
"no-underscore-dangle": 0,//标识符不能以_开头或结尾
"no-restricted-syntax":0,//for in 报错
"import/no-extraneous-dependencies":0,//引入配置时候不能识别webpack.config中的绝对路径
"react/prefer-stateless-function": 0,
"no-console": 0,
"react/no-multi-comp": 0,
"react/prop-types": 0,
"react/jsx-filename-extension": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"no-use-before-define": 0,
"react/jsx-pascal-case": 0,
"import/no-duplicates": 2,
"complexity": [2, 95], // 算法复杂度到25
"max-depth": [2, 9],
"max-len": [2, {
"code": 180,
"tabWidth": 2,
"ignoreUrls": true
}],
"max-nested-callbacks": [2, 9],
"camelcase": 2,
"linebreak-style": [0, "error", "windows"], // 允许windows开发环境
"no-param-reassign": [2, {
"props": false
}], // disable the rule specifically for param properties
"max-statements": [2, 100] // 每个方法最多100条语句
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zibuyu69/budget-pro-master.git
git@gitee.com:zibuyu69/budget-pro-master.git
zibuyu69
budget-pro-master
budget-pro-master
master

搜索帮助