mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 23:10:12 +01:00
Update dependencies: browserify to 14.1.0, eslint to 3.16.1, nodeunit to 0.11.0, rimraf to 2.6.1, uglify-js to 2.8.5.
This commit is contained in:
parent
f39f3b2e45
commit
7a669bc50f
2 changed files with 77 additions and 70 deletions
137
.eslintrc.json
137
.eslintrc.json
|
|
@ -5,8 +5,69 @@
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"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-alert": "error",
|
||||||
"no-array-constructor": "error",
|
"no-array-constructor": "error",
|
||||||
|
"no-await-in-loop": "error",
|
||||||
"no-bitwise": "off",
|
"no-bitwise": "off",
|
||||||
"no-caller": "error",
|
"no-caller": "error",
|
||||||
"no-case-declarations": "error",
|
"no-case-declarations": "error",
|
||||||
|
|
@ -63,6 +124,7 @@
|
||||||
"no-mixed-operators": "error",
|
"no-mixed-operators": "error",
|
||||||
"no-mixed-requires": "error",
|
"no-mixed-requires": "error",
|
||||||
"no-mixed-spaces-and-tabs": "error",
|
"no-mixed-spaces-and-tabs": "error",
|
||||||
|
"no-multi-assign": "off",
|
||||||
"no-multi-spaces": "error",
|
"no-multi-spaces": "error",
|
||||||
"no-multi-str": "error",
|
"no-multi-str": "error",
|
||||||
"no-multiple-empty-lines": "error",
|
"no-multiple-empty-lines": "error",
|
||||||
|
|
@ -101,20 +163,20 @@
|
||||||
"no-sequences": "error",
|
"no-sequences": "error",
|
||||||
"no-shadow": "error",
|
"no-shadow": "error",
|
||||||
"no-shadow-restricted-names": "error",
|
"no-shadow-restricted-names": "error",
|
||||||
"no-whitespace-before-property": "error",
|
|
||||||
"no-spaced-func": "error",
|
"no-spaced-func": "error",
|
||||||
"no-sparse-arrays": "error",
|
"no-sparse-arrays": "error",
|
||||||
"no-sync": "off",
|
"no-sync": "off",
|
||||||
"no-tabs": "error",
|
"no-tabs": "error",
|
||||||
|
"no-template-curly-in-string": "error",
|
||||||
"no-ternary": "off",
|
"no-ternary": "off",
|
||||||
"no-trailing-spaces": "error",
|
|
||||||
"no-this-before-super": "error",
|
"no-this-before-super": "error",
|
||||||
"no-throw-literal": "error",
|
"no-throw-literal": "error",
|
||||||
|
"no-trailing-spaces": "error",
|
||||||
"no-undef": "error",
|
"no-undef": "error",
|
||||||
"no-undef-init": "error",
|
"no-undef-init": "error",
|
||||||
"no-undefined": "off",
|
"no-undefined": "off",
|
||||||
"no-unexpected-multiline": "error",
|
|
||||||
"no-underscore-dangle": "error",
|
"no-underscore-dangle": "error",
|
||||||
|
"no-unexpected-multiline": "error",
|
||||||
"no-unmodified-loop-condition": "error",
|
"no-unmodified-loop-condition": "error",
|
||||||
"no-unneeded-ternary": "error",
|
"no-unneeded-ternary": "error",
|
||||||
"no-unreachable": "error",
|
"no-unreachable": "error",
|
||||||
|
|
@ -131,69 +193,11 @@
|
||||||
"no-useless-escape": "error",
|
"no-useless-escape": "error",
|
||||||
"no-useless-rename": "error",
|
"no-useless-rename": "error",
|
||||||
"no-useless-return": "error",
|
"no-useless-return": "error",
|
||||||
"no-void": "error",
|
|
||||||
"no-var": "off",
|
"no-var": "off",
|
||||||
|
"no-void": "error",
|
||||||
"no-warning-comments": "error",
|
"no-warning-comments": "error",
|
||||||
|
"no-whitespace-before-property": "error",
|
||||||
"no-with": "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-newline": "off",
|
||||||
"object-curly-spacing": ["error", "always"],
|
"object-curly-spacing": ["error", "always"],
|
||||||
"object-property-newline": "error",
|
"object-property-newline": "error",
|
||||||
|
|
@ -205,7 +209,9 @@
|
||||||
"padded-blocks": "off",
|
"padded-blocks": "off",
|
||||||
"prefer-arrow-callback": "off",
|
"prefer-arrow-callback": "off",
|
||||||
"prefer-const": "off",
|
"prefer-const": "off",
|
||||||
|
"prefer-destructuring": "off",
|
||||||
"prefer-numeric-literals": "error",
|
"prefer-numeric-literals": "error",
|
||||||
|
"prefer-promise-reject-errors": "error",
|
||||||
"prefer-reflect": "off",
|
"prefer-reflect": "off",
|
||||||
"prefer-rest-params": "off",
|
"prefer-rest-params": "off",
|
||||||
"prefer-spread": "off",
|
"prefer-spread": "off",
|
||||||
|
|
@ -213,13 +219,14 @@
|
||||||
"quote-props": "error",
|
"quote-props": "error",
|
||||||
"quotes": "error",
|
"quotes": "error",
|
||||||
"radix": "error",
|
"radix": "error",
|
||||||
|
"require-await": "error",
|
||||||
"require-jsdoc": "off",
|
"require-jsdoc": "off",
|
||||||
"require-yield": "error",
|
"require-yield": "error",
|
||||||
"rest-spread-spacing": "error",
|
"rest-spread-spacing": "error",
|
||||||
"semi": "error",
|
"semi": "error",
|
||||||
"semi-spacing": "error",
|
"semi-spacing": "error",
|
||||||
"sort-keys": "off",
|
|
||||||
"sort-imports": "error",
|
"sort-imports": "error",
|
||||||
|
"sort-keys": "off",
|
||||||
"sort-vars": "error",
|
"sort-vars": "error",
|
||||||
"space-before-blocks": "error",
|
"space-before-blocks": "error",
|
||||||
"space-before-function-paren": ["error", "never"],
|
"space-before-function-paren": ["error", "never"],
|
||||||
|
|
@ -230,6 +237,7 @@
|
||||||
"strict": "error",
|
"strict": "error",
|
||||||
"symbol-description": "error",
|
"symbol-description": "error",
|
||||||
"template-curly-spacing": "error",
|
"template-curly-spacing": "error",
|
||||||
|
"template-tag-spacing": "error",
|
||||||
"unicode-bom": "error",
|
"unicode-bom": "error",
|
||||||
"use-isnan": "error",
|
"use-isnan": "error",
|
||||||
"valid-jsdoc": "error",
|
"valid-jsdoc": "error",
|
||||||
|
|
@ -237,7 +245,6 @@
|
||||||
"vars-on-top": "off",
|
"vars-on-top": "off",
|
||||||
"wrap-iife": "error",
|
"wrap-iife": "error",
|
||||||
"wrap-regex": "off",
|
"wrap-regex": "off",
|
||||||
"no-template-curly-in-string": "error",
|
|
||||||
"yield-star-spacing": "error",
|
"yield-star-spacing": "error",
|
||||||
"yoda": "error"
|
"yoda": "error"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
package.json
10
package.json
|
|
@ -26,16 +26,16 @@
|
||||||
"markdown-it": "^8.0.1"
|
"markdown-it": "^8.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^13.1.1",
|
"browserify": "^14.1.0",
|
||||||
"cpy-cli": "^1.0.1",
|
"cpy-cli": "^1.0.1",
|
||||||
"eslint": "^3.10.0",
|
"eslint": "^3.16.1",
|
||||||
"glob": "^7.1.1",
|
"glob": "^7.1.1",
|
||||||
"istanbul": "^0.4.5",
|
"istanbul": "^0.4.5",
|
||||||
"nodeunit": "^0.10.2",
|
"nodeunit": "^0.11.0",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"rimraf": "^2.5.4",
|
"rimraf": "^2.6.1",
|
||||||
"tv4": "^1.2.7",
|
"tv4": "^1.2.7",
|
||||||
"uglify-js": "^2.7.4"
|
"uglify-js": "^2.8.5"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"markdown",
|
"markdown",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue