diff --git a/.eslintrc.json b/.eslintrc.json index eeb60e8d..48d362a9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,8 +5,69 @@ "node": true }, "rules": { + "accessor-pairs": "error", + "array-bracket-spacing": ["error", "always"], + "array-callback-return": "error", + "arrow-body-style": "error", + "arrow-parens": "error", + "arrow-spacing": "error", + "block-scoped-var": "error", + "block-spacing": "error", + "brace-style": "error", + "callback-return": "off", + "camelcase": "error", + "capitalized-comments": "off", + "class-methods-use-this": "error", + "comma-dangle": "error", + "comma-spacing": "error", + "comma-style": "error", + "complexity": "error", + "computed-property-spacing": "error", + "consistent-return": "off", + "consistent-this": "error", + "constructor-super": "error", + "curly": "error", + "default-case": "error", + "dot-location": ["error", "property"], + "dot-notation": "error", + "eol-last": "error", + "eqeqeq": "error", + "func-call-spacing": "error", + "func-name-matching": "off", + "func-names": "error", + "func-style": ["error", "declaration"], + "generator-star-spacing": "error", + "global-require": "off", + "guard-for-in": "error", + "handle-callback-err": "error", + "id-blacklist": "error", + "id-length": "off", + "id-match": "error", + "indent": ["error", 2, { "SwitchCase": 1 }], + "init-declarations": "error", + "jsx-quotes": "error", + "key-spacing": "error", + "keyword-spacing": "error", + "line-comment-position": "error", + "linebreak-style": "off", + "lines-around-comment": "off", + "lines-around-directive": "error", + "max-depth": "error", + "max-len": "error", + "max-lines": "off", + "max-nested-callbacks": "error", + "max-params": ["error", 6], + "max-statements": ["error", 28], + "max-statements-per-line": "error", + "multiline-ternary": "off", + "new-cap": "error", + "new-parens": "error", + "newline-after-var": "off", + "newline-before-return": "off", + "newline-per-chained-call": "off", "no-alert": "error", "no-array-constructor": "error", + "no-await-in-loop": "error", "no-bitwise": "off", "no-caller": "error", "no-case-declarations": "error", @@ -63,6 +124,7 @@ "no-mixed-operators": "error", "no-mixed-requires": "error", "no-mixed-spaces-and-tabs": "error", + "no-multi-assign": "off", "no-multi-spaces": "error", "no-multi-str": "error", "no-multiple-empty-lines": "error", @@ -101,20 +163,20 @@ "no-sequences": "error", "no-shadow": "error", "no-shadow-restricted-names": "error", - "no-whitespace-before-property": "error", "no-spaced-func": "error", "no-sparse-arrays": "error", "no-sync": "off", "no-tabs": "error", + "no-template-curly-in-string": "error", "no-ternary": "off", - "no-trailing-spaces": "error", "no-this-before-super": "error", "no-throw-literal": "error", + "no-trailing-spaces": "error", "no-undef": "error", "no-undef-init": "error", "no-undefined": "off", - "no-unexpected-multiline": "error", "no-underscore-dangle": "error", + "no-unexpected-multiline": "error", "no-unmodified-loop-condition": "error", "no-unneeded-ternary": "error", "no-unreachable": "error", @@ -131,69 +193,11 @@ "no-useless-escape": "error", "no-useless-rename": "error", "no-useless-return": "error", - "no-void": "error", "no-var": "off", + "no-void": "error", "no-warning-comments": "error", + "no-whitespace-before-property": "error", "no-with": "error", - "array-bracket-spacing": ["error", "always"], - "array-callback-return": "error", - "arrow-body-style": "error", - "arrow-parens": "error", - "arrow-spacing": "error", - "accessor-pairs": "error", - "block-scoped-var": "error", - "block-spacing": "error", - "brace-style": "error", - "callback-return": "off", - "camelcase": "error", - "class-methods-use-this": "error", - "comma-dangle": "error", - "comma-spacing": "error", - "comma-style": "error", - "complexity": "error", - "computed-property-spacing": "error", - "consistent-return": "off", - "consistent-this": "error", - "constructor-super": "error", - "curly": "error", - "default-case": "error", - "dot-location": ["error", "property"], - "dot-notation": "error", - "eol-last": "error", - "eqeqeq": "error", - "func-call-spacing": "error", - "func-names": "error", - "func-name-matching": "off", - "func-style": ["error", "declaration"], - "generator-star-spacing": "error", - "global-require": "off", - "guard-for-in": "error", - "handle-callback-err": "error", - "id-blacklist": "error", - "id-length": "off", - "id-match": "error", - "indent": ["error", 2, { "SwitchCase": 1 }], - "init-declarations": "error", - "jsx-quotes": "error", - "key-spacing": "error", - "keyword-spacing": "error", - "linebreak-style": "off", - "line-comment-position": "error", - "lines-around-comment": "off", - "lines-around-directive": "error", - "max-depth": "error", - "max-len": "error", - "max-lines": "off", - "max-nested-callbacks": "error", - "max-params": ["error", 6], - "max-statements": ["error", 28], - "max-statements-per-line": "error", - "multiline-ternary": "off", - "new-cap": "error", - "new-parens": "error", - "newline-after-var": "off", - "newline-before-return": "off", - "newline-per-chained-call": "off", "object-curly-newline": "off", "object-curly-spacing": ["error", "always"], "object-property-newline": "error", @@ -205,7 +209,9 @@ "padded-blocks": "off", "prefer-arrow-callback": "off", "prefer-const": "off", + "prefer-destructuring": "off", "prefer-numeric-literals": "error", + "prefer-promise-reject-errors": "error", "prefer-reflect": "off", "prefer-rest-params": "off", "prefer-spread": "off", @@ -213,13 +219,14 @@ "quote-props": "error", "quotes": "error", "radix": "error", + "require-await": "error", "require-jsdoc": "off", "require-yield": "error", "rest-spread-spacing": "error", "semi": "error", "semi-spacing": "error", - "sort-keys": "off", "sort-imports": "error", + "sort-keys": "off", "sort-vars": "error", "space-before-blocks": "error", "space-before-function-paren": ["error", "never"], @@ -230,6 +237,7 @@ "strict": "error", "symbol-description": "error", "template-curly-spacing": "error", + "template-tag-spacing": "error", "unicode-bom": "error", "use-isnan": "error", "valid-jsdoc": "error", @@ -237,7 +245,6 @@ "vars-on-top": "off", "wrap-iife": "error", "wrap-regex": "off", - "no-template-curly-in-string": "error", "yield-star-spacing": "error", "yoda": "error" } diff --git a/package.json b/package.json index 0de21663..66878ba7 100644 --- a/package.json +++ b/package.json @@ -26,16 +26,16 @@ "markdown-it": "^8.0.1" }, "devDependencies": { - "browserify": "^13.1.1", + "browserify": "^14.1.0", "cpy-cli": "^1.0.1", - "eslint": "^3.10.0", + "eslint": "^3.16.1", "glob": "^7.1.1", "istanbul": "^0.4.5", - "nodeunit": "^0.10.2", + "nodeunit": "^0.11.0", "q": "^1.4.1", - "rimraf": "^2.5.4", + "rimraf": "^2.6.1", "tv4": "^1.2.7", - "uglify-js": "^2.7.4" + "uglify-js": "^2.8.5" }, "keywords": [ "markdown",