make eslint work and update yoda config

This commit is contained in:
Devin Howard 2016-10-04 23:06:49 +08:00
parent c90460802e
commit dbc2ff75df
2 changed files with 7 additions and 1 deletions

View file

@ -11,5 +11,8 @@ module.exports = {
"promise",
"standard",
"react"
]
],
"rules": {
"yoda": [2, "never", { "exceptRange": true }]
}
}

View file

@ -40,7 +40,10 @@
"babel-eslint": "^6.1.2",
"chai": "^3.5.0",
"eslint": "^3.5.0",
"eslint-config-standard": "^6.2.0",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-react": "^6.3.0",
"eslint-plugin-standard": "^2.0.1",
"mocha": "^3.0.2"
},
"optionalDependencies": {