2017-07-26 22:03:18 +08:00
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"commonjs": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"experimentalObjectRestSpread": true,
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"react"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"indent": [
|
|
|
|
"error",
|
2017-09-03 08:43:13 +08:00
|
|
|
2,
|
2017-07-26 22:03:18 +08:00
|
|
|
{
|
|
|
|
"SwitchCase": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
2017-07-27 15:06:42 +08:00
|
|
|
"strict": 0,
|
|
|
|
"comma-dangle": ["error", "never"]
|
2017-07-26 22:03:18 +08:00
|
|
|
}
|
|
|
|
};
|