Skip to content

Commit

Permalink
Clean up .eslinrc for duplicate rules
Browse files Browse the repository at this point in the history
removed any rule that we override later from the eslint part

except for rules which we override to exactly the same value, in those cases, removed them from our part
  • Loading branch information
himdel committed Oct 19, 2016
1 parent ba4ad4e commit 3f88d48
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,8 @@
"strict": 0,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-unused-vars": [2, {
"vars": "local",
"args": "after-used"
}],
"comma-dangle": [2, "never"],
"no-cond-assign": [2, "always"],
"no-console": 1,
"no-debugger": 1,
"no-alert": 1,
"no-constant-condition": 1,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
Expand All @@ -68,23 +61,16 @@
"use-isnan": 2,
"valid-jsdoc": 2,
"valid-typeof": 2,
"consistent-return": 2,
"curly": [2, "multi-line"],
"default-case": 2,
"dot-notation": [2, {
"allowKeywords": true
}],
"eqeqeq": 2,
"guard-for-in": 2,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-labels": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-lone-blocks": 2,
Expand All @@ -96,7 +82,6 @@
"no-new-wrappers": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-process-exit": 2,
"no-proto": 2,
"no-redeclare": 2,
Expand All @@ -105,22 +90,17 @@
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 1,
"no-with": 2,
"handle-callback-err": 1,
"radix": 2,
"wrap-iife": [2, "any"],
"yoda": 2,
"indent": [2, 2],
"brace-style": [2,
"1tbs", {
"allowSingleLine": true
}],
"quotes": [
2, "single", "avoid-escape"
],
"camelcase": [2, {
"properties": "never"
}],
Expand All @@ -130,7 +110,6 @@
}],
"comma-style": [2, "last"],
"eol-last": 2,
"func-names": 1,
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
Expand All @@ -141,7 +120,6 @@
"new-parens": 2,
"no-array-constructor": 2,
"no-lonely-if": 1,
"no-mixed-spaces-and-tabs": 1,
"no-multiple-empty-lines": [2, {
"max": 2
}],
Expand All @@ -161,12 +139,11 @@
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": [2, "always", {
"exceptions": ["-", "+"],
"markers": ["=", "!"] // space here to support sprockets directives
}],
// }}} (except for removing the JSX rules)
// }}} (except for removing the JSX rules, and anything we override)

"indent": [ "error", 2, {
"SwitchCase": 1,
Expand All @@ -177,11 +154,6 @@
"vars-on-top": 0,
"no-var": 0,
"linebreak-style": [ "error", "unix" ],
"semi-spacing": ["error", {
"before": false,
"after": true
}],
"semi": [ "error", "always" ],
"comma-dangle": [ "warn", "always-multiline" ],
"space-unary-ops": [ "error", {
"words": true,
Expand All @@ -197,7 +169,6 @@
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_"
}],
"no-console": 1,
"no-alert": 2,
"no-debugger": 2,
"no-else-return": 1,
Expand All @@ -211,9 +182,11 @@
}],
"func-names": 0,
"no-mixed-spaces-and-tabs": 2,
"camelcase": 1,
"camelcase": [ "warn", {
"properties": "never"
}],

"curly": [ "warn", "all" ],
"space-before-function-paren": [ "error", "never" ],
"no-eq-null": 0,
"no-param-reassign": 1,
"no-fallthrough": [ "error", {
Expand All @@ -222,7 +195,6 @@
"no-use-before-define": [ "error", {
"functions": false,
"classes": true
}],
"padded-blocks": [ "error", "never" ]
}]
}
}

0 comments on commit 3f88d48

Please sign in to comment.