代码拉取完成,页面将自动刷新
{
"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条语句
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。