From dbc2ff75df9ca1acdb5bb9b5f074d1df28e82991 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 4 Oct 2016 23:06:49 +0800 Subject: [PATCH] make eslint work and update yoda config --- .eslintrc.js | 5 ++++- package.json | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 11a46fd1..aa594fa7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,5 +11,8 @@ module.exports = { "promise", "standard", "react" - ] + ], + "rules": { + "yoda": [2, "never", { "exceptRange": true }] + } } diff --git a/package.json b/package.json index a976e5f1..c882fdd0 100644 --- a/package.json +++ b/package.json @@ -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": {