Change all '1' (warn) flags to '0' in eslint.

This changes all warn flags to no-warn because warn flags currently
are not tracked nor monitored by the linter but do show up on a
line-by-line basis in text editors using the eslint plugin which
ends up causing a lot of noise.
This commit is contained in:
brockwhittaker 2017-02-01 16:21:12 -08:00 committed by Tim Abbott
parent 894f0b5bf0
commit 830f3e76b6
1 changed files with 16 additions and 16 deletions

View File

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