Skip to content

Commit

Permalink
Update for ESLint 1.0
Browse files Browse the repository at this point in the history
* Remove all rules that were set to 0 since that is the new behavior
* Add new rules from 1.0
  • Loading branch information
bdougherty committed Aug 11, 2015
1 parent 6811195 commit 72ed19f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
31 changes: 11 additions & 20 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,12 @@
"console": false
},
"rules": {
// deprecated
"global-strict": 0,
"no-extra-strict": 0,
"no-space-before-semi": 0,
"space-after-function-name": 0,
"space-before-function-parentheses": 0,
"space-unary-word-ops": 0,

"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-class-assign": 2,
"no-cond-assign": 2,
"no-console": 0,
"no-const-assign": 2,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
Expand All @@ -34,18 +26,20 @@
"no-duplicate-case": 2,
"no-else-return": 2,
"no-empty": 2,
"no-empty-class": 2,
"no-empty-character-class": 2,
"no-empty-label": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-ex-assign": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": [2, "functions"],
"no-extra-semi": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-func-assign": 2,
"no-implicit-coercion": [2, {"boolean": false, "number": true, "string": true}],
"no-implied-eval": 2,
"no-inner-declarations": [2, "functions"],
"no-invalid-regexp": 2,
Expand All @@ -69,14 +63,10 @@
"no-obj-calls": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-path-concat": 0,
"no-plusplus": 0,
"no-process-env": 0,
"no-process-exit": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-regex-spaces": 2,
"no-reserved-keys": 0,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
Expand All @@ -90,18 +80,19 @@
"no-trailing-spaces": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-underscore-dangle": 0,
"no-unreachable": 2,
"no-unused-expressions": 2,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-use-before-define": 2,
// "no-var": 2,
"no-useless-call": 2,
"no-var": 2,
"no-warning-comments": [1, { "terms": ["@todo", "todo", "fixme"] }],
"no-with": 2,
"no-wrap-func": 2,

"accessor-pairs": [2, { "setWithoutGet": true }],
"array-bracket-spacing": [2, "never"],
"arrow-parens": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"brace-style": [2, "stroustrup"],
"camelcase": 2,
"comma-dangle": [2, "never"],
Expand All @@ -115,17 +106,17 @@
"dot-notation": [2, { "allowKeywords": true }],
"eol-last": 2,
"eqeqeq": 2,
"indent": [2, 4, { "indentSwitchCase": true }],
"indent": [2, 4, { "SwitchCase": 1 }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"max-nested-callbacks": [1, 2],
"max-params": [2, 4],
"max-statements": [0, 10],
"new-cap": 2,
"new-parens": 2,
"object-curly-spacing": [2, "always"],
"object-shorthand": [2, "always"],
"operator-assignment": [2, "always"],
"prefer-const": 2,
"prefer-spread": 2,
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": 2,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vimeo/eslint-config-player",
"version": "1.1.0",
"version": "2.0.0",
"description": "Default ESLint configuration for Player projects.",
"main": "index.js",
"repository": "vimeo/eslint-config-player",
Expand All @@ -14,6 +14,6 @@
"strip-json-comments": "^1.0.2"
},
"peerDependencies": {
"eslint": "^0.24.0"
"eslint": "^1.1.0"
}
}

0 comments on commit 72ed19f

Please sign in to comment.