diff --git a/.eslintrc b/.eslintrc index 783db09..c4c653a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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, @@ -34,7 +26,7 @@ "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, @@ -42,10 +34,12 @@ "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, @@ -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, @@ -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"], @@ -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, diff --git a/package.json b/package.json index e7b9720..219a791 100644 --- a/package.json +++ b/package.json @@ -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", @@ -14,6 +14,6 @@ "strip-json-comments": "^1.0.2" }, "peerDependencies": { - "eslint": "^0.24.0" + "eslint": "^1.1.0" } }