yapi/.eslintrc.js

40 lines
789 B
JavaScript
Raw Normal View History

module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
2017-09-17 13:36:51 +08:00
extends: ["eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
2017-09-17 13:36:51 +08:00
plugins: [
"react",
"import"
],
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
2017-09-15 12:01:17 +08:00
2017-07-27 15:06:42 +08:00
"strict": 0,
2017-09-06 10:18:13 +08:00
"comma-dangle": ["error", "never"],
"no-console": ["off"]
}
2017-09-05 10:24:13 +08:00
};