Skip to content

Commit

Permalink
chore(eslint): use words instead of numbers (#797)
Browse files Browse the repository at this point in the history
Eslint rules can be configured either using words or number values:

 * "off" or 0
 * "warn" or 1
 * "error" or 2

This switches our config to use the string values instead of the number
values, since the number values are too cryptic.

No change to our actual settings.
  • Loading branch information
nfischer committed Oct 31, 2017
1 parent a187bd1 commit 8451fce
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
40 changes: 20 additions & 20 deletions .eslintrc.json
Expand Up @@ -4,26 +4,26 @@
},
"extends": "airbnb-base/legacy",
"rules": {
"comma-dangle": [2, "always-multiline"],
"global-require": 0,
"vars-on-top": 0,
"spaced-comment": [2, "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }],
"no-param-reassign": 0,
"no-console": 0,
"curly": [2, "multi-line"],
"func-names": 0,
"quote-props": 0,
"no-underscore-dangle": 0,
"max-len": 0,
"no-use-before-define": 0,
"no-empty": 0,
"no-else-return": 0,
"no-throw-literal": 0,
"newline-per-chained-call": 0,
"consistent-return": 0,
"no-mixed-operators": 0,
"no-prototype-builtins": 0,
"new-cap": [2, {
"comma-dangle": ["error", "always-multiline"],
"global-require": "off",
"vars-on-top": "off",
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }],
"no-param-reassign": "off",
"no-console": "off",
"curly": ["error", "multi-line"],
"func-names": "off",
"quote-props": "off",
"no-underscore-dangle": "off",
"max-len": "off",
"no-use-before-define": "off",
"no-empty": "off",
"no-else-return": "off",
"no-throw-literal": "off",
"newline-per-chained-call": "off",
"consistent-return": "off",
"no-mixed-operators": "off",
"no-prototype-builtins": "off",
"new-cap": ["error", {
"capIsNewExceptions": [
"ShellString"
]}
Expand Down
28 changes: 14 additions & 14 deletions test/.eslintrc.json
Expand Up @@ -4,20 +4,20 @@
},
"extends": "airbnb-base",
"rules": {
"import/no-mutable-exports": 0,
"global-require": 0,
"vars-on-top": 0,
"spaced-comment": [2, "always", { "markers": ["@", "@include"], "exceptions": ["@"] }],
"no-param-reassign": 0,
"no-console": 0,
"curly": 0,
"no-var": 2,
"prefer-const": 2,
"prefer-template": 0,
"prefer-arrow-callback": 0,
"no-underscore-dangle": 0,
"max-len": 0,
"new-cap": [2, {
"import/no-mutable-exports": "off",
"global-require": "off",
"vars-on-top": "off",
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@"] }],
"no-param-reassign": "off",
"no-console": "off",
"curly": "off",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "off",
"prefer-arrow-callback": "off",
"no-underscore-dangle": "off",
"max-len": "off",
"new-cap": ["error", {
"capIsNewExceptions": [
"ShellString"
]}
Expand Down

0 comments on commit 8451fce

Please sign in to comment.