diff --git a/.markdownlintrc b/.markdownlintrc index bdd7fb63ef1..688e198b8c5 100644 --- a/.markdownlintrc +++ b/.markdownlintrc @@ -5,5 +5,8 @@ "MD026": { "punctuation": ".,;:!" }, - "MD029": false + "MD029": false, + "MD033": { + "allowed_elements": ["br", "details", "summary"] + } } diff --git a/package.json b/package.json index 457bb8519bc..1b010310bd9 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "listr": "^0.14.2", "listr-input": "^0.1.2", "loop": "^3.0.6", - "markdownlint-cli": "^0.13.0", + "markdownlint": "^0.11.0", "npm-run-all": "^4.1.5", "rimraf": "^2.6.2", "shelljs": "^0.8.3", @@ -56,7 +56,7 @@ "clean:packages": "rimraf \"packages/!(connector-edge|extension-vscode)/{dist,node_modules,npm-shrinkwrap.json,package-lock.json,yarn.lock}\"", "clean:root": "rimraf dist", "lint": "npm-run-all lint:*", - "lint:md": "markdownlint *.md", + "lint:md": "node scripts/lint-markdown", "lint:packages": "loop \"yarn lint\" --cwd packages --exclude configuration-development,configuration-progressive-web-apps,configuration-web-recommended", "lint:scripts": "eslint scripts .travis --cache --ext js --ext ts --report-unused-disable-directives", "pre-release": "npm run clean:packages && npm run build:scripts && npm run release -- --prerelease", diff --git a/packages/connector-chrome/package.json b/packages/connector-chrome/package.json index 46d7112edfa..70e7f8047e7 100644 --- a/packages/connector-chrome/package.json +++ b/packages/connector-chrome/package.json @@ -26,7 +26,6 @@ "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", "lodash": "^4.17.11", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", "rimraf": "^2.6.2", @@ -74,7 +73,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/connector-edge/package.json b/packages/connector-edge/package.json index 0ba6bcbcbaa..725b9012f80 100644 --- a/packages/connector-edge/package.json +++ b/packages/connector-edge/package.json @@ -11,7 +11,6 @@ "eslint-plugin-markdown": "^1.0.0-beta.6", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "rimraf": "^2.6.2", "typescript": "^3.1.6", @@ -52,7 +51,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "preinstall": "node scripts/preinstall.js", "test": "npm run test-only", "test-only": "npm run build", diff --git a/packages/connector-jsdom/package.json b/packages/connector-jsdom/package.json index 2aa668b91c8..14e85e67dc6 100644 --- a/packages/connector-jsdom/package.json +++ b/packages/connector-jsdom/package.json @@ -26,7 +26,6 @@ "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", "lodash": "^4.17.11", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", "rimraf": "^2.6.2", @@ -74,7 +73,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/connector-local/package.json b/packages/connector-local/package.json index dff687cbc14..7f46aeadf9c 100644 --- a/packages/connector-local/package.json +++ b/packages/connector-local/package.json @@ -23,7 +23,6 @@ "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", "lodash": "^4.17.11", - "markdownlint-cli": "^0.13.0", "mock-require": "^3.0.2", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -61,7 +60,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/create-hint/package.json b/packages/create-hint/package.json index 983ef813f4a..8531296714a 100644 --- a/packages/create-hint/package.json +++ b/packages/create-hint/package.json @@ -23,7 +23,6 @@ "handlebars": "^4.0.11", "hint": "^4.1.0", "inquirer": "^6.2.0", - "markdownlint-cli": "^0.13.0", "mkdirp": "^0.5.1", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -62,7 +61,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/create-hint/src/shared-templates/package.hbs b/packages/create-hint/src/shared-templates/package.hbs index 4fe3a8316ec..3f59afbe472 100644 --- a/packages/create-hint/src/shared-templates/package.hbs +++ b/packages/create-hint/src/shared-templates/package.hbs @@ -15,8 +15,8 @@ {{{dependencyVersion "cpx" "^1.5.0"}}}, {{{dependencyVersion "eslint" "^5.0.1"}}}, {{{dependencyVersion "eslint-plugin-markdown" "^1.0.0-beta.7"}}}, - {{{dependencyVersion "eslint-plugin-typescript" "^0.12.0"}}}, - {{{dependencyVersion "markdownlint-cli" "^0.10.0"}}}, + {{{dependencyVersion "eslint-plugin-typescript" "^0.12.0"}}},{{#unless official}} + {{{dependencyVersion "markdownlint-cli" "^0.13.0"}}},{{/unless}} {{{dependencyVersion "npm-link-check" "^2.0.0"}}}, {{{dependencyVersion "npm-run-all" "^4.1.2"}}}, {{{dependencyVersion "nyc" "^12.0.2"}}}, @@ -73,9 +73,10 @@ "build:ts": "tsc -b", "clean": "rimraf dist", "lint": "npm-run-all lint:*",{{#if official}} - "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives",{{else}} - "lint:js": "eslint . --cache --ext js --ext md --ext ts --report-unused-disable-directives",{{/if}} - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", + "lint:md": "node ../../scripts/lint-markdown.js",{{else}} + "lint:js": "eslint . --cache --ext js --ext md --ext ts --report-unused-disable-directives", + "lint:md": "markdownlint --ignore CHANGELOG.md *.md",{{/if}} "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "init": "npm install && npm run build", diff --git a/packages/create-hintrc/package.json b/packages/create-hintrc/package.json index 6840526d518..262128f6a39 100644 --- a/packages/create-hintrc/package.json +++ b/packages/create-hintrc/package.json @@ -28,7 +28,6 @@ "handlebars": "^4.0.11", "hint": "^4.1.0", "inquirer": "^6.2.0", - "markdownlint-cli": "^0.13.0", "mkdirp": "^0.5.1", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -69,7 +68,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/create-parser/package.json b/packages/create-parser/package.json index 9973b98977f..0ab2d7c32c0 100644 --- a/packages/create-parser/package.json +++ b/packages/create-parser/package.json @@ -24,7 +24,6 @@ "handlebars": "^4.0.11", "hint": "^4.1.0", "inquirer": "^6.2.0", - "markdownlint-cli": "^0.13.0", "mkdirp": "^0.5.1", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -65,7 +64,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/create-parser/src/shared-templates/package.hbs b/packages/create-parser/src/shared-templates/package.hbs index 2824e1ec9b7..4c9e5d56613 100644 --- a/packages/create-parser/src/shared-templates/package.hbs +++ b/packages/create-parser/src/shared-templates/package.hbs @@ -17,8 +17,8 @@ {{{dependencyVersion "eslint-plugin-typescript" "^0.12.0"}}}, {{{dependencyVersion "eventemitter2" "^5.0.1"}}}, {{{dependencyVersion "proxyquire" "2.0.0"}}}, - {{{dependencyVersion "sinon" "^6.0.1"}}}, - {{{dependencyVersion "markdownlint-cli" "^0.10.0"}}}, + {{{dependencyVersion "sinon" "^6.0.1"}}},{{#unless official}} + {{{dependencyVersion "markdownlint-cli" "^0.13.0"}}},{{/unless}} {{{dependencyVersion "npm-link-check" "^2.0.0"}}}, {{{dependencyVersion "npm-run-all" "^4.1.2"}}}, {{{dependencyVersion "nyc" "^12.0.2"}}}, @@ -74,9 +74,10 @@ "build:ts": "tsc -b", "clean": "rimraf dist", "lint": "npm-run-all lint:*",{{#if official}} - "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives",{{else}} - "lint:js": "eslint . --cache --ext js --ext md --ext ts --report-unused-disable-directives",{{/if}} - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", + "lint:md": "node ../../scripts/lint-markdown.js",{{else}} + "lint:js": "eslint . --cache --ext js --ext md --ext ts --report-unused-disable-directives", + "lint:md": "markdownlint --ignore CHANGELOG.md *.md",{{/if}} "test": "npm run lint && npm run build && nyc ava",{{#if official}} "test-only": "nyc ava",{{/if}} "init": "npm install && npm run build", diff --git a/packages/extension-browser/package.json b/packages/extension-browser/package.json index a539f00eb89..eeac4c42411 100644 --- a/packages/extension-browser/package.json +++ b/packages/extension-browser/package.json @@ -49,7 +49,6 @@ "html-minifier": "^3.5.21", "is-ci": "^1.2.1", "lodash": "^4.17.11", - "markdownlint-cli": "^0.13.0", "mock-require": "^3.0.2", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -95,7 +94,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "watch": "npm run build && npm-run-all --parallel -c watch:*", diff --git a/packages/extension-vscode/package.json b/packages/extension-vscode/package.json index be5ef4cc618..c45810a3dad 100644 --- a/packages/extension-vscode/package.json +++ b/packages/extension-vscode/package.json @@ -30,7 +30,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -65,7 +64,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "postinstall": "node ./node_modules/vscode/bin/install", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", diff --git a/packages/formatter-codeframe/package.json b/packages/formatter-codeframe/package.json index 2a0b8fdc972..3633dc2f8b0 100644 --- a/packages/formatter-codeframe/package.json +++ b/packages/formatter-codeframe/package.json @@ -21,7 +21,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -63,7 +62,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/formatter-excel/package.json b/packages/formatter-excel/package.json index 62c14b3e82c..8407d4cb853 100644 --- a/packages/formatter-excel/package.json +++ b/packages/formatter-excel/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -62,7 +61,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/formatter-html/package.json b/packages/formatter-html/package.json index 0731f584ee8..dcc266926ce 100644 --- a/packages/formatter-html/package.json +++ b/packages/formatter-html/package.json @@ -25,7 +25,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -67,7 +66,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/formatter-json/package.json b/packages/formatter-json/package.json index 1542bf02514..0b1e7b15c91 100644 --- a/packages/formatter-json/package.json +++ b/packages/formatter-json/package.json @@ -18,7 +18,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/formatter-stylish/package.json b/packages/formatter-stylish/package.json index 06ca3bab74a..8a572b45d89 100644 --- a/packages/formatter-stylish/package.json +++ b/packages/formatter-stylish/package.json @@ -23,7 +23,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -64,7 +63,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/formatter-summary/package.json b/packages/formatter-summary/package.json index ae66b60dc9d..216b41cfc57 100644 --- a/packages/formatter-summary/package.json +++ b/packages/formatter-summary/package.json @@ -22,7 +22,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -63,7 +62,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-amp-validator/package.json b/packages/hint-amp-validator/package.json index 19edae7881c..52a40fafc45 100644 --- a/packages/hint-amp-validator/package.json +++ b/packages/hint-amp-validator/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-apple-touch-icons/package.json b/packages/hint-apple-touch-icons/package.json index a29b3da2681..eb5871608d6 100644 --- a/packages/hint-apple-touch-icons/package.json +++ b/packages/hint-apple-touch-icons/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -60,7 +59,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-axe/package.json b/packages/hint-axe/package.json index 04307011c0c..8d459e6c049 100644 --- a/packages/hint-axe/package.json +++ b/packages/hint-axe/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-babel-config/package.json b/packages/hint-babel-config/package.json index 6213db28100..f3565c4673c 100644 --- a/packages/hint-babel-config/package.json +++ b/packages/hint-babel-config/package.json @@ -17,7 +17,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-content-type/package.json b/packages/hint-content-type/package.json index 2b2adff33d3..48aef65f0d9 100644 --- a/packages/hint-content-type/package.json +++ b/packages/hint-content-type/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -60,7 +59,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-disown-opener/package.json b/packages/hint-disown-opener/package.json index c4269f2e6d3..3d093b55fb7 100644 --- a/packages/hint-disown-opener/package.json +++ b/packages/hint-disown-opener/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-doctype/package.json b/packages/hint-doctype/package.json index 8e7f75396bd..624f1a5ea19 100644 --- a/packages/hint-doctype/package.json +++ b/packages/hint-doctype/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-beta.7", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -55,7 +54,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-highest-available-document-mode/README.md b/packages/hint-highest-available-document-mode/README.md index 21915c3ceb6..6cef4d32ec4 100644 --- a/packages/hint-highest-available-document-mode/README.md +++ b/packages/hint-highest-available-document-mode/README.md @@ -219,7 +219,6 @@ X-UA-Compatible: ie=edge ## How to configure the server to pass this hint -
How to configure Apache Apache can be configured to add or remove the `X-UA-Compatible` @@ -344,8 +343,6 @@ see the [IIS server configuration related documentation][iis config].
- - ## Can the hint be configured? `requireMetaElement` can be set to `true` to allow and require the use of diff --git a/packages/hint-highest-available-document-mode/package.json b/packages/hint-highest-available-document-mode/package.json index f50f3f9dcd1..ace17ab7a14 100644 --- a/packages/hint-highest-available-document-mode/package.json +++ b/packages/hint-highest-available-document-mode/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-html-checker/package.json b/packages/hint-html-checker/package.json index d74aaa78832..d00cf2e2e66 100644 --- a/packages/hint-html-checker/package.json +++ b/packages/hint-html-checker/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "mock-require": "^3.0.2", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -60,7 +59,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-http-cache/README.md b/packages/hint-http-cache/README.md index 6a0c98d6827..b6259aeeba2 100644 --- a/packages/hint-http-cache/README.md +++ b/packages/hint-http-cache/README.md @@ -165,7 +165,6 @@ Cache-Control: no-cache ## How to configure the server to pass this hint -
How to configure Apache Enabling Apache to automatically add the `Cache-Control` header @@ -342,8 +341,6 @@ see the [IIS server configuration related documentation][iis config].
- - ## Can the hint be configured? Yes, you can configure: diff --git a/packages/hint-http-cache/package.json b/packages/hint-http-cache/package.json index 8b6816d0513..b0a183381d0 100644 --- a/packages/hint-http-cache/package.json +++ b/packages/hint-http-cache/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-http-compression/README.md b/packages/hint-http-compression/README.md index 5ee4da2fdb7..777cf986388 100644 --- a/packages/hint-http-compression/README.md +++ b/packages/hint-http-compression/README.md @@ -515,7 +515,6 @@ Content-Type: image/svg+xml ## How to configure the server to pass this hint -
How to configure Apache Apache can be configured to conditionally (based on media type) @@ -972,14 +971,12 @@ For the complete set of configurations, not just for this rule, see the [IIS server configuration related documentation][iis config]. If you prefer to let IIS compress your assets using Brotli, you can -use the [`IIS compression scheme providers`][iss compression]. However, +use the [`IIS compression scheme providers`][iis compression]. However, make sure to read [how to enable multiple compression schemes][multiple compression schemes] and the priority limitations in some versions.
- - ## Can the hint be configured? You can override the defaults by specifying what type of compression diff --git a/packages/hint-http-compression/package.json b/packages/hint-http-compression/package.json index e7e88fa0bb6..b023c66f825 100644 --- a/packages/hint-http-compression/package.json +++ b/packages/hint-http-compression/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -60,7 +59,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives --fix", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-https-only/package.json b/packages/hint-https-only/package.json index ab01e205f2a..a650d07c2fd 100644 --- a/packages/hint-https-only/package.json +++ b/packages/hint-https-only/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -55,7 +54,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-image-optimization-cloudinary/package.json b/packages/hint-image-optimization-cloudinary/package.json index 5e80ba67388..9156080da93 100644 --- a/packages/hint-image-optimization-cloudinary/package.json +++ b/packages/hint-image-optimization-cloudinary/package.json @@ -21,7 +21,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "mock-require": "^3.0.2", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -61,7 +60,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-manifest-app-name/package.json b/packages/hint-manifest-app-name/package.json index 67ff90f5c6f..bfd0ee57c15 100644 --- a/packages/hint-manifest-app-name/package.json +++ b/packages/hint-manifest-app-name/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -61,7 +60,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-manifest-exists/package.json b/packages/hint-manifest-exists/package.json index 70f04dbfd2b..cb4a18f0514 100644 --- a/packages/hint-manifest-exists/package.json +++ b/packages/hint-manifest-exists/package.json @@ -17,7 +17,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-manifest-file-extension/package.json b/packages/hint-manifest-file-extension/package.json index 804adbcdf09..d28e6280474 100644 --- a/packages/hint-manifest-file-extension/package.json +++ b/packages/hint-manifest-file-extension/package.json @@ -17,7 +17,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-manifest-is-valid/package.json b/packages/hint-manifest-is-valid/package.json index b66dca3709b..fe95566859f 100644 --- a/packages/hint-manifest-is-valid/package.json +++ b/packages/hint-manifest-is-valid/package.json @@ -22,7 +22,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -63,7 +62,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-meta-charset-utf-8/package.json b/packages/hint-meta-charset-utf-8/package.json index 441c3a168d2..bf7b6a6f6af 100644 --- a/packages/hint-meta-charset-utf-8/package.json +++ b/packages/hint-meta-charset-utf-8/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -60,7 +59,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-meta-theme-color/package.json b/packages/hint-meta-theme-color/package.json index 68dbd652b29..79299324e31 100644 --- a/packages/hint-meta-theme-color/package.json +++ b/packages/hint-meta-theme-color/package.json @@ -20,7 +20,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-meta-viewport/package.json b/packages/hint-meta-viewport/package.json index 6847f7c3d80..a2df88ba831 100644 --- a/packages/hint-meta-viewport/package.json +++ b/packages/hint-meta-viewport/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-minified-js/package.json b/packages/hint-minified-js/package.json index af7928073e1..ea909ad38f6 100644 --- a/packages/hint-minified-js/package.json +++ b/packages/hint-minified-js/package.json @@ -17,7 +17,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -57,7 +56,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-bom/package.json b/packages/hint-no-bom/package.json index 1c9c1804d0a..bd9f03a47e1 100644 --- a/packages/hint-no-bom/package.json +++ b/packages/hint-no-bom/package.json @@ -15,7 +15,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -55,7 +54,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-broken-links/package.json b/packages/hint-no-broken-links/package.json index cf8999eb305..ceca902d5fb 100644 --- a/packages/hint-no-broken-links/package.json +++ b/packages/hint-no-broken-links/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-disallowed-headers/README.md b/packages/hint-no-disallowed-headers/README.md index 885fc784bac..50faa649f01 100644 --- a/packages/hint-no-disallowed-headers/README.md +++ b/packages/hint-no-disallowed-headers/README.md @@ -82,7 +82,6 @@ HTTP/... 200 OK ## How to configure the server to pass this hint -
How to configure Apache If the headers are sent, in most cases, to make Apache stop sending @@ -215,8 +214,6 @@ remove the `Server` header from any request that contains it.
- - ## Can the hint be configured? Yes, you can use: diff --git a/packages/hint-no-disallowed-headers/package.json b/packages/hint-no-disallowed-headers/package.json index 9fa517e992f..e2f1fc898e3 100644 --- a/packages/hint-no-disallowed-headers/package.json +++ b/packages/hint-no-disallowed-headers/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-friendly-error-pages/package.json b/packages/hint-no-friendly-error-pages/package.json index 2f8a8e623c9..71b2fecb1c6 100644 --- a/packages/hint-no-friendly-error-pages/package.json +++ b/packages/hint-no-friendly-error-pages/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-html-only-headers/README.md b/packages/hint-no-html-only-headers/README.md index d16258713d8..7c63e6f5bf6 100644 --- a/packages/hint-no-html-only-headers/README.md +++ b/packages/hint-no-html-only-headers/README.md @@ -84,7 +84,6 @@ X-XSS-Protection: 1; mode=block ## How to configure the server to pass this hint -
How to configure Apache Apache can be configured to remove headers using the [`Header` @@ -203,8 +202,6 @@ see the [IIS server configuration related documentation][iis config].
- - ## Can the hint be configured? Yes, you can use: diff --git a/packages/hint-no-html-only-headers/package.json b/packages/hint-no-html-only-headers/package.json index 64ed2be0016..cdb66f51fda 100644 --- a/packages/hint-no-html-only-headers/package.json +++ b/packages/hint-no-html-only-headers/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-http-redirects/package.json b/packages/hint-no-http-redirects/package.json index edcdc486ef0..faa8dfb34c7 100644 --- a/packages/hint-no-http-redirects/package.json +++ b/packages/hint-no-http-redirects/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-p3p/package.json b/packages/hint-no-p3p/package.json index aa8c2cbb080..e5d1cfe78b8 100644 --- a/packages/hint-no-p3p/package.json +++ b/packages/hint-no-p3p/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -55,7 +54,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-protocol-relative-urls/package.json b/packages/hint-no-protocol-relative-urls/package.json index 8b688b0d296..4c8d76dd2b1 100644 --- a/packages/hint-no-protocol-relative-urls/package.json +++ b/packages/hint-no-protocol-relative-urls/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-no-vulnerable-javascript-libraries/package.json b/packages/hint-no-vulnerable-javascript-libraries/package.json index c371d9e627d..a3910970d91 100644 --- a/packages/hint-no-vulnerable-javascript-libraries/package.json +++ b/packages/hint-no-vulnerable-javascript-libraries/package.json @@ -24,7 +24,6 @@ "hint": "^4.1.0", "jquery": "2.1.4", "knockout": "https://github.com/knockout/knockout/archive/v3.4.0-rc.tar.gz", - "markdownlint-cli": "^0.13.0", "moment": "2.22.2", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -71,7 +70,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-performance-budget/package.json b/packages/hint-performance-budget/package.json index b2a132822f5..80d9fbf00f4 100644 --- a/packages/hint-performance-budget/package.json +++ b/packages/hint-performance-budget/package.json @@ -17,7 +17,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -57,7 +56,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-sri/package.json b/packages/hint-sri/package.json index efbb03c9c22..e01296468d1 100644 --- a/packages/hint-sri/package.json +++ b/packages/hint-sri/package.json @@ -18,7 +18,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", "rimraf": "^2.6.2", @@ -57,7 +56,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-ssllabs/package.json b/packages/hint-ssllabs/package.json index 1edcb423ccb..8cdb0f3bd09 100644 --- a/packages/hint-ssllabs/package.json +++ b/packages/hint-ssllabs/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "mock-require": "^3.0.2", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-strict-transport-security/README.md b/packages/hint-strict-transport-security/README.md index 880e1c1766b..0dd6531559d 100644 --- a/packages/hint-strict-transport-security/README.md +++ b/packages/hint-strict-transport-security/README.md @@ -117,7 +117,6 @@ HTTP/... 200 OK ## How to configure the server to pass this hint -
How to configure Apache Apache can be configured to serve resources with the @@ -179,8 +178,6 @@ see the [IIS server configuration related documentation][iis config].
- - ## Can the hint be configured? Yes, you can configure the value that `max-age` is checked against diff --git a/packages/hint-strict-transport-security/package.json b/packages/hint-strict-transport-security/package.json index eb9ba9660f3..3040970c8d4 100644 --- a/packages/hint-strict-transport-security/package.json +++ b/packages/hint-strict-transport-security/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "mock-require": "^3.0.2", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", @@ -57,7 +56,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-stylesheet-limits/package.json b/packages/hint-stylesheet-limits/package.json index 6219c3c4f86..9f93cb40d41 100644 --- a/packages/hint-stylesheet-limits/package.json +++ b/packages/hint-stylesheet-limits/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -55,7 +54,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-typescript-config/package.json b/packages/hint-typescript-config/package.json index b5d8f5824c0..adb85c2c67e 100644 --- a/packages/hint-typescript-config/package.json +++ b/packages/hint-typescript-config/package.json @@ -17,7 +17,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext ts --ext md --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-validate-set-cookie-header/package.json b/packages/hint-validate-set-cookie-header/package.json index a7764f7007a..78541bfd450 100644 --- a/packages/hint-validate-set-cookie-header/package.json +++ b/packages/hint-validate-set-cookie-header/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-webpack-config/package.json b/packages/hint-webpack-config/package.json index 1a32d48be07..0b20e2ff857 100644 --- a/packages/hint-webpack-config/package.json +++ b/packages/hint-webpack-config/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -61,7 +60,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint-x-content-type-options/package.json b/packages/hint-x-content-type-options/package.json index 73c8365faf8..d8b1e3e4309 100644 --- a/packages/hint-x-content-type-options/package.json +++ b/packages/hint-x-content-type-options/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -56,7 +55,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/hint/docs/user-guide/concepts/connectors.md b/packages/hint/docs/user-guide/concepts/connectors.md index 3a3162a0e38..f227069e4f9 100644 --- a/packages/hint/docs/user-guide/concepts/connectors.md +++ b/packages/hint/docs/user-guide/concepts/connectors.md @@ -29,12 +29,7 @@ The current supported connectors are: * `jsdom`: Your website will be loaded using [`jsdom`][jsdom]. * `chrome`: Your website will be loaded using Chrome and the Chrome - Debugging Protocol. This is one of the `remote-debugging-connector`s -* `edge`: Your website will be loaded using Edge via the - [`edge-diagnostics-adapter`][eda]. You will need to run Windows 10 - Creators Update or later to use it. This connector will only be - installed if you are running on it. There are some known issues so - please check the [Edge issues](#edge) section below. + Debugging Protocol. This is one of the `remote-debugging-connector`s. * `local`: This connector will analyze the files specified (a file or a directory). @@ -83,12 +78,8 @@ Depending on the `connector`, other configurations may be available. } ``` - - ### remote-debugging-connector configuration - - There are some `connector`s built on top of the [Chrome DevTools Protocol][cdp]. `chrome` and `edge` are some of these `connector`s. @@ -158,12 +149,8 @@ but expose more events or have some extra functionality. The following document details the known differences or issues among the official connectors. - - ### Edge - - * You need administrator privileges to run `webhint` on Edge. You should be automatically prompted when running it. * It’s best to close all instances of Edge before to avoid any issues. @@ -182,6 +169,7 @@ connectors. [cdp]: https://chromedevtools.github.io/devtools-protocol/ +[cli flags]: https://github.com/GoogleChrome/chrome-launcher/blob/master/docs/chrome-flags-for-tools.md [eda]: https://github.com/Microsoft/edge-diagnostics-adapter [how to connector]: ../../contributor-guide/how-to/connector.md [jsdom]: https://github.com/tmpvar/jsdom diff --git a/packages/hint/docs/user-guide/concepts/parsers.md b/packages/hint/docs/user-guide/concepts/parsers.md index b5e47ddcc0d..30e05be5123 100644 --- a/packages/hint/docs/user-guide/concepts/parsers.md +++ b/packages/hint/docs/user-guide/concepts/parsers.md @@ -98,3 +98,4 @@ public constructor(context: HintContext) { [@hint/parser-javascript]: https://npmjs.com/package/@hint/parser-javascript/ [@hint/parser-manifest]: https://npmjs.com/package/@hint/parser-manifest/ [@hint/parser-typescript-config]:https://npmjs.com/package/@hint/parser-typescript-config/ +[postcss]: https://postcss.org/ diff --git a/packages/hint/docs/user-guide/development-flow-integration/travis-and-azure.md b/packages/hint/docs/user-guide/development-flow-integration/travis-and-azure.md index 3dfc91f289a..9a38d1511dc 100644 --- a/packages/hint/docs/user-guide/development-flow-integration/travis-and-azure.md +++ b/packages/hint/docs/user-guide/development-flow-integration/travis-and-azure.md @@ -413,7 +413,7 @@ The following is a functional `.travis.yml` that does the following: **NOTE**: This will not change the status of your build if `webhint` fails in staging. To achieve that you will have to combine all the stages after `script` into `script` -([webhint.io's `.travis.yml`][webhintiotravis] does that). +([webhint.io's `.travis.yml`][webhintio travis] does that). diff --git a/packages/hint/package.json b/packages/hint/package.json index 6a39d0fed30..e5c984c74f5 100644 --- a/packages/hint/package.json +++ b/packages/hint/package.json @@ -65,7 +65,6 @@ "eslint-plugin-import": "^2.14.0", "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", "proxyquire": "2.0.0", diff --git a/packages/parser-babel-config/package.json b/packages/parser-babel-config/package.json index 62255aa9e01..a62da728f30 100644 --- a/packages/parser-babel-config/package.json +++ b/packages/parser-babel-config/package.json @@ -18,7 +18,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/parser-css/package.json b/packages/parser-css/package.json index c64efd55190..b2d361613c3 100644 --- a/packages/parser-css/package.json +++ b/packages/parser-css/package.json @@ -18,7 +18,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/parser-html/package.json b/packages/parser-html/package.json index 84a275071cc..e636a78d533 100644 --- a/packages/parser-html/package.json +++ b/packages/parser-html/package.json @@ -19,7 +19,6 @@ "eslint-plugin-typescript": "0.14.0", "eventemitter2": "^5.0.1", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/parser-javascript/package.json b/packages/parser-javascript/package.json index 20bc7a8ac1f..029a7ccd479 100644 --- a/packages/parser-javascript/package.json +++ b/packages/parser-javascript/package.json @@ -19,7 +19,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -59,7 +58,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/parser-manifest/package.json b/packages/parser-manifest/package.json index 6831349c409..9c33a9f18ae 100644 --- a/packages/parser-manifest/package.json +++ b/packages/parser-manifest/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -57,7 +56,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/parser-typescript-config/package.json b/packages/parser-typescript-config/package.json index d639ea47268..06eaec9efee 100644 --- a/packages/parser-typescript-config/package.json +++ b/packages/parser-typescript-config/package.json @@ -18,7 +18,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -58,7 +57,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/parser-webpack-config/package.json b/packages/parser-webpack-config/package.json index 926c9c9071f..9bf17734de4 100644 --- a/packages/parser-webpack-config/package.json +++ b/packages/parser-webpack-config/package.json @@ -15,7 +15,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-link-check": "^3.0.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", @@ -55,7 +54,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/utils-connector-tools/package.json b/packages/utils-connector-tools/package.json index 644de233dbd..dd332b82cd4 100644 --- a/packages/utils-connector-tools/package.json +++ b/packages/utils-connector-tools/package.json @@ -23,7 +23,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", "rimraf": "^2.6.2", @@ -60,7 +59,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run lint && npm run build && npm run test-only", "test-only": "nyc ava", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/utils-create-server/package.json b/packages/utils-create-server/package.json index e6f5e501919..fdf13f92cb2 100644 --- a/packages/utils-create-server/package.json +++ b/packages/utils-create-server/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "rimraf": "^2.6.2", "typescript": "^3.1.6", @@ -51,7 +50,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run test-only", "test-only": "npm run build", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/utils-debugging-protocol-common/package.json b/packages/utils-debugging-protocol-common/package.json index 478b6034402..cf2d967a6df 100644 --- a/packages/utils-debugging-protocol-common/package.json +++ b/packages/utils-debugging-protocol-common/package.json @@ -16,7 +16,6 @@ "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", "hint": "^4.1.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "rimraf": "^2.6.2", "typescript": "^3.1.6", @@ -51,7 +50,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run test-only", "test-only": "npm run build", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only", diff --git a/packages/utils-tests-helpers/package.json b/packages/utils-tests-helpers/package.json index ed15eeccc7e..cce29d2dced 100644 --- a/packages/utils-tests-helpers/package.json +++ b/packages/utils-tests-helpers/package.json @@ -14,7 +14,6 @@ "eslint-plugin-import": "^2.14.0", "eslint-plugin-markdown": "^1.0.0-rc.0", "eslint-plugin-typescript": "0.14.0", - "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", "rimraf": "^2.6.2", "typescript": "^3.1.6", @@ -48,7 +47,7 @@ "clean": "rimraf dist", "lint": "npm-run-all lint:*", "lint:js": "eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives", - "lint:md": "markdownlint --ignore CHANGELOG.md *.md", + "lint:md": "node ../../scripts/lint-markdown.js", "test": "npm run test-only", "test-only": "npm run build", "test-release": "npm run lint && npm run clean && npm run build:assets && tsc", diff --git a/scripts/lint-markdown.js b/scripts/lint-markdown.js new file mode 100644 index 00000000000..68fdfa31be8 --- /dev/null +++ b/scripts/lint-markdown.js @@ -0,0 +1,82 @@ +/** + * Run markdownlint via the API in order to add custom rules for our needs. + * + * Custom rules: + * + * * `validate-reference-links`: Validates that there are not any typos when + * using reference links. + * + */ +const path = require('path'); + +const markdownlint = require('markdownlint'); +const globby = require('globby'); + +const files = globby.sync(['**/*.md', '!**/CHANGELOG.md', '!**/node_modules/**'], { + cwd: process.cwd(), + gitignore: true +}); + +const config = markdownlint.readConfigSync(path.join(__dirname, '..', '.markdownlintrc')); // eslint-disable-line no-sync +const result = markdownlint.sync({ + config, + customRules: [ + { + description: 'Invalid reference link', + function: (params, onError) => { + /** + * markdown-lint automatically transforms founded reference links when + * passing the tokens and removing the markdown code. E.g.: + * * `[something][somewhere]` → Is a child of type `text` with content + * set to `something` + * + * If the reference is not found it will return the following: + * `[something][somewhere]` → Is a child of type `text` with content + * set to `[something][somewhere]` + * + * To know if a reference is found or not, we search all the children + * of type `text` and we check if their content matches the RegExp. + * If it is we know the reference is invalid. + * + */ + + /** + * This matches the ending part of a reference link. E.g: `][somewhere]` + * Taking into account new lines, etc. + */ + const refLinkRegExp = /\](\[(.|\s)*?\])/gi; + + params.tokens.filter((token) => { + return token.type === 'inline'; + }).forEach((token) => { + return token.children.filter((child) => { + return child.type === 'text'; + }).forEach((text) => { + const invalidRefLink = refLinkRegExp.exec(text.content); + + if (invalidRefLink !== null) { + onError({ + // context: invalidRefLink[1], + detail: `Reference: ${invalidRefLink[1]}`, + lineNumber: text.lineNumber + }); + } + }); + }); + }, + names: ['valid-reference-links'], + tags: ['links'] + } + ], + files, + resultVersion: 1 +}); + +const resultString = result.toString(); +const returnCode = resultString ? 1 : 0; + +if (resultString) { + console.error(resultString); +} + +process.exit(returnCode); // eslint-disable-line \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 13331ef6603..3e6088a26ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2731,7 +2731,7 @@ commander@2.17.x, commander@~2.17.1: resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg== -commander@2.9.0, commander@~2.9.0: +commander@2.9.0: version "2.9.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" integrity sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q= @@ -3228,11 +3228,6 @@ deep-extend@^0.6.0: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== -deep-extend@~0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.5.1.tgz#b894a9dd90d3023fbf1c55a394fb858eb2066f1f" - integrity sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w== - deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" @@ -4569,11 +4564,6 @@ get-stdin@^6.0.0: resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== -get-stdin@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398" - integrity sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g= - get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -4703,7 +4693,7 @@ glob@^5.0.3: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@~7.1.2: +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3: version "7.1.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== @@ -5926,14 +5916,6 @@ js-yaml@^3.10.0, js-yaml@^3.12.0, js-yaml@^3.9.0, js-yaml@^3.9.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@~3.11.0: - version "3.11.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef" - integrity sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" @@ -6364,12 +6346,7 @@ lodash.difference@^4.3.0: resolved "https://registry.yarnpkg.com/lodash.difference/-/lodash.difference-4.5.0.tgz#9ccb4e505d486b91651345772885a2df27fd017c" integrity sha1-nMtOUF1Ia5FlE0V3KIWi3yf9AXw= -lodash.differencewith@~4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.differencewith/-/lodash.differencewith-4.5.0.tgz#bafafbc918b55154e179176a00bb0aefaac854b7" - integrity sha1-uvr7yRi1UVTheRdqALsK76rIVLc= - -lodash.flatten@^4.2.0, lodash.flatten@~4.4.0: +lodash.flatten@^4.2.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= @@ -6592,23 +6569,7 @@ markdown-it@8.4.2: mdurl "^1.0.1" uc.micro "^1.0.5" -markdownlint-cli@^0.13.0: - version "0.13.0" - resolved "https://registry.yarnpkg.com/markdownlint-cli/-/markdownlint-cli-0.13.0.tgz#af1d29e5d8b434256c451c81b87dff1c218844cb" - integrity sha512-DCjhAIb4EDny6xdjOcu2Rckp1sOSktQU9PjRN2pK9p0Azby7YYBqZXO8I+vhv5XKd2Pk0IbbOhyZ/+zjfH4oww== - dependencies: - commander "~2.9.0" - deep-extend "~0.5.1" - get-stdin "~5.0.1" - glob "~7.1.2" - js-yaml "~3.11.0" - lodash.differencewith "~4.5.0" - lodash.flatten "~4.4.0" - markdownlint "~0.11.0" - minimatch "~3.0.4" - rc "~1.2.7" - -markdownlint@~0.11.0: +markdownlint@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/markdownlint/-/markdownlint-0.11.0.tgz#3858bbdbc1ab78abf0c098d841c72b63dd3206a0" integrity sha512-wE5WdKD6zW2DQaPQ5TFBTXh5j76DnWd/IFffnDQgHmi6Y61DJXBDfLftZ/suJHuv6cwPjM6gKw2GaRLJMOR+Mg== @@ -6858,7 +6819,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= -"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4, minimatch@~3.0.4: +"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== @@ -8358,7 +8319,7 @@ raw-loader@^0.5.1: resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-0.5.1.tgz#0c3d0beaed8a01c966d9787bf778281252a979aa" integrity sha1-DD0L6u2KAclm2Xh793goElKpeao= -rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@~1.2.7: +rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==