diff options
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -59,7 +59,7 @@ "eqeqeq": [2, "allow-null"], "generator-star-spacing": [2, { "before": true, "after": true }], "handle-callback-err": [2, "^(err|error)$" ], - "indent": "off", + "indent": [2, 2,{ "SwitchCase": 1 }], "jsx-quotes": [2, "prefer-double"], "key-spacing": 2, "keyword-spacing": [2, { "before": true, "after": true }], @@ -133,7 +133,9 @@ "no-unneeded-ternary": [2, { "defaultAssignment": false }], "no-unreachable": 2, "no-unsafe-finally": 2, + "no-unused-expressions": ["error", { "allowShortCircuit" : true, "allowTernary": true }], "no-unused-vars": [2, { "vars": "all", "args": "all", "argsIgnorePattern": "[_]+" }], + "no-use-before-define": [2, { "functions": false }], "no-useless-call": 2, "no-useless-computed-key": 2, "no-useless-constructor": 2, |