1. Add no space in paren rule 2. fix spec/eslintrc.json so it allow for inheriting from root rc. Because the spce rc specified reccomended, it "turned off" all of the rule tweaks in the root. This fixes that.
24 lines
482 B
JSON
24 lines
482 B
JSON
{
|
|
"root": true,
|
|
"extends": "eslint:recommended",
|
|
"env": {
|
|
"node": true,
|
|
"es6": true
|
|
},
|
|
"parser": "babel-eslint",
|
|
"plugins": [
|
|
"flowtype"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"indent": ["error", 2],
|
|
"linebreak-style": ["error", "unix"],
|
|
"no-trailing-spaces": 2,
|
|
"eol-last": 2,
|
|
"space-in-parens": ["error", "never"]
|
|
}
|
|
}
|