加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Catouse 提交于 2017-02-03 13:58 . + 🔥first blood.
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"arrow-parens": ["off"],
"compat/compat": 2,
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-unresolved": ["error", { "ignore": ["electron"] }],
"import/no-extraneous-dependencies": "off",
"no-use-before-define": "off",
"promise/param-names": 2,
"promise/always-return": 2,
"promise/catch-or-return": 2,
"promise/no-native": 0,
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off",
"flowtype-errors/show-errors": 2
},
"plugins": [
"flowtype",
"flowtype-errors",
"import",
"promise",
"compat",
"react"
],
"settings": {
"targets": ["chrome"],
"import/resolver": {
"webpack": {
"config": "webpack.config.eslint.js"
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化