From cfa2987d279830d7a70e528a93f87cc8c6e79044 Mon Sep 17 00:00:00 2001 From: Arpith Siromoney Date: Sun, 4 Dec 2016 20:53:15 +0530 Subject: [PATCH] Eslint: add rules that do not error --- .eslintrc.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 0b69124b77..48bcb2b59f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -90,6 +90,28 @@ "unread_ui": false }, "rules": { + "prefer-const": ["error", { + "destructuring": "any", + "ignoreReadBeforeAssign": true + }], + "no-const-assign": "error", + "no-new-object": 2, + "quote-props": ["error", "as-needed", { + "keywords": false, + "unnecessary": true, + "numbers": false + }], + "no-array-constructor": "error", + "array-callback-return": 1, + "template-curly-spacing": "error", + "no-useless-escape": 1, + "func-style": ["off", "expression"], + "wrap-iife": ["error", "outside", { "functionPrototypeMethods": false }], + "no-new-func": "error", + "space-before-function-paren": 1, + "no-param-reassign": 1, + "prefer-spread": "error", + "arrow-spacing": ["error", { "before": true, "after": true }], "no-alert": 2, "no-array-constructor": 2, "no-caller": 2,