diff --git a/.eslintrc.json b/.eslintrc.json index ec3994d155..9c42fcd8b5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -95,14 +95,14 @@ "emoji_codes": false }, "rules": { - "no-restricted-syntax": 1, - "no-nested-ternary": 1, - "spaced-comment": 1, - "space-infix-ops": 1, - "newline-per-chained-call": 1, - "no-whitespace-before-property": 1, - "padded-blocks": 1, - "space-in-parens": 1, + "no-restricted-syntax": 0, + "no-nested-ternary": 0, + "spaced-comment": 0, + "space-infix-ops": 0, + "newline-per-chained-call": 0, + "no-whitespace-before-property": 0, + "padded-blocks": 0, + "space-in-parens": 0, "eol-last": ["error", "always"], "no-unneeded-ternary": ["error", { "defaultAssignment": false }], "no-case-declarations": "error", @@ -129,12 +129,12 @@ "template-curly-spacing": "error", //The Zulip codebase complies partially with the "no-useless-escape" rule; only regex expressions haven't been updated yet. //Updated regex expressions are currently being tested in casper files and will decide about a potential future enforcement of this rule. - "no-useless-escape": 1, + "no-useless-escape": 0, "func-style": ["off", "expression"], "wrap-iife": ["error", "outside", { "functionPrototypeMethods": false }], "no-new-func": "error", "space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }], - "no-param-reassign": 1, + "no-param-reassign": 0, "prefer-spread": "error", "arrow-spacing": ["error", { "before": true, "after": true }], "no-alert": 2, @@ -149,7 +149,7 @@ "exports": "always-multiline", "functions": "never" }], - "no-console": 1, + "no-console": 0, "no-control-regex": 2, "no-debugger": 2, "no-div-regex": 2, @@ -186,7 +186,7 @@ "no-ternary": 0, "no-self-compare": 2, "no-sync": 2, - "no-underscore-dangle": 1, + "no-underscore-dangle": 0, "no-loop-func": 2, "no-labels": 2, "no-unused-vars": ["error", { "vars": "local", "args": "after-used", @@ -197,13 +197,13 @@ "no-iterator": 2, "no-mixed-requires": [0, false], "no-extra-parens": ["error", "functions"], - "no-shadow": 1, + "no-shadow": 0, "no-use-before-define": 2, "no-redeclare": 2, "no-regex-spaces": 2, "brace-style": ["error", "1tbs", { "allowSingleLine": true }], "block-scoped-var": 2, - "camelcase": 1, + "camelcase": 0, "complexity": [0, 4], "curly": 2, "dot-notation": 2, @@ -221,7 +221,7 @@ "new-cap": ["error", { "newIsCap": true, "capIsNew": false }], "new-parens": 2, "one-var": ["error", "never"], - "quotes": [1, "single"], + "quotes": [0, "single"], "quote-props": ["error", "as-needed", { "keywords": false, "unnecessary": true, "numbers": false }], "radix": 2, "semi": 2, @@ -235,7 +235,7 @@ } }], "space-before-blocks": 2, - "strict": 1, + "strict": 0, "unnecessary-strict": 0, "use-isnan": 2, "valid-typeof": ["error", { "requireStringLiterals": true }],