From 955ae5f390524fda471e028cc36b91d905f333ad Mon Sep 17 00:00:00 2001 From: David Anson Date: Wed, 24 Feb 2016 21:37:56 -0800 Subject: [PATCH] Update dependencies: eslint to 2.2.0, q to 1.4.1, rimraf to 2.5.2, uglify-js to 2.6.2. --- .eslintrc.json | 31 ++++++++++++++++++++++--------- package.json | 8 ++++---- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 858db8dd..0daf674f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,19 +1,17 @@ { - "parser": "espree", - "ecmaFeatures": {}, "env": { "node": true }, "rules": { "no-alert": 2, "no-array-constructor": 2, - "no-arrow-condition": 2, "no-bitwise": 0, "no-caller": 2, "no-case-declarations": 2, "no-catch-shadow": 2, "no-class-assign": 2, "no-cond-assign": 2, + "no-confusing-arrow": 2, "no-console": 2, "no-const-assign": 2, "no-constant-condition": 2, @@ -29,7 +27,7 @@ "no-else-return": 2, "no-empty": 2, "no-empty-character-class": 2, - "no-empty-label": 2, + "no-empty-function": 0, "no-empty-pattern": 2, "no-eq-null": 2, "no-eval": 2, @@ -37,12 +35,14 @@ "no-extend-native": 2, "no-extra-bind": 2, "no-extra-boolean-cast": 2, + "no-extra-label": 2, "no-extra-parens": 0, "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-implicit-globals": 2, "no-implied-eval": 2, "no-inline-comments": 0, "no-inner-declarations": [2, "functions"], @@ -69,6 +69,7 @@ "no-new-func": 2, "no-new-object": 2, "no-new-require": 2, + "no-new-symbol": 2, "no-new-wrappers": 2, "no-obj-calls": 2, "no-octal": 2, @@ -81,14 +82,17 @@ "no-proto": 2, "no-redeclare": 2, "no-regex-spaces": 2, + "no-restricted-imports": 2, "no-restricted-modules": 2, "no-restricted-syntax": 2, "no-return-assign": 2, "no-script-url": 2, + "no-self-assign": 2, "no-self-compare": 2, "no-sequences": 2, "no-shadow": 2, "no-shadow-restricted-names": 2, + "no-whitespace-before-property": 2, "no-spaced-func": 2, "no-sparse-arrays": 2, "no-sync": 0, @@ -101,13 +105,16 @@ "no-undefined": 0, "no-unexpected-multiline": 2, "no-underscore-dangle": 2, + "no-unmodified-loop-condition": 2, "no-unneeded-ternary": 2, "no-unreachable": 2, "no-unused-expressions": 2, + "no-unused-labels": 2, "no-unused-vars": [2, {"vars": "all", "args": "after-used"}], "no-use-before-define": 2, "no-useless-call": 2, "no-useless-concat": 2, + "no-useless-constructor": 2, "no-void": 2, "no-var": 0, "no-warning-comments": [2, { "terms": ["todo", "fixme", "xxx"], "location": "start" }], @@ -115,6 +122,7 @@ "no-magic-numbers": 0, "array-bracket-spacing": [2, "always"], + "array-callback-return": 2, "arrow-body-style": [2, "as-needed"], "arrow-parens": 2, "arrow-spacing": 2, @@ -129,7 +137,7 @@ "comma-style": 2, "complexity": [2, 11], "computed-property-spacing": [2, "never"], - "consistent-return": 2, + "consistent-return": 0, "consistent-this": [2, "that"], "constructor-super": 2, "curly": [2, "all"], @@ -149,6 +157,7 @@ "init-declarations": 2, "jsx-quotes": [2, "prefer-double"], "key-spacing": [2, { "beforeColon": false, "afterColon": true }], + "keyword-spacing": 2, "lines-around-comment": 0, "max-depth": [2, 4], "max-len": [2, 80, 4], @@ -158,42 +167,46 @@ "new-cap": 2, "new-parens": 2, "newline-after-var": 0, + "newline-per-chained-call": 0, "object-curly-spacing": [2, "always"], "object-shorthand": 0, "one-var": [2, "never"], + "one-var-declaration-per-line": 2, "operator-assignment": [2, "always"], "operator-linebreak": [2, "after"], "padded-blocks": 0, "prefer-arrow-callback": 0, "prefer-const": 0, - "prefer-spread": 0, "prefer-reflect": 0, + "prefer-rest-params": 0, + "prefer-spread": 0, "prefer-template": 0, "quote-props": 2, "quotes": [2, "double"], "radix": 2, "id-match": 2, + "id-blacklist": 2, "require-jsdoc": 0, "require-yield": 2, "semi": 2, "semi-spacing": [2, {"before": false, "after": true}], "sort-vars": 0, - "space-after-keywords": [2, "always"], - "space-before-keywords": [2, "always"], + "sort-imports": 2, "space-before-blocks": [2, "always"], "space-before-function-paren": [2, "never"], "space-in-parens": [2, "never"], "space-infix-ops": 2, - "space-return-throw-case": 2, "space-unary-ops": [2, { "words": true, "nonwords": false }], "spaced-comment": 2, "strict": [2, "global"], + "template-curly-spacing": 2, "use-isnan": 2, "valid-jsdoc": 2, "valid-typeof": 2, "vars-on-top": 0, "wrap-iife": 2, "wrap-regex": 0, + "yield-star-spacing": 2, "yoda": [2, "never"] } } diff --git a/package.json b/package.json index 9ab2ecd6..5ff86551 100644 --- a/package.json +++ b/package.json @@ -25,13 +25,13 @@ "devDependencies": { "browserify": "^13.0.0", "cpy-cli": "^1.0.0", - "eslint": "^1.10.3", + "eslint": "^2.2.0", "glob": "^7.0.0", "istanbul": "^0.4.2", "nodeunit": "^0.9.1", - "q": "^1.4.0", - "rimraf": "^2.5.0", - "uglify-js": "^2.6.1" + "q": "^1.4.1", + "rimraf": "^2.5.2", + "uglify-js": "^2.6.2" }, "keywords": [ "markdown",