Skip to content

Commit

Permalink
Reduce remark false positives by skipping guaranteed failures (#1626)
Browse files Browse the repository at this point in the history
* Skip localhost and codepen (cloudflare protection produces 403s)

* Bump remark-lint-no-dead-urls to 1.1.0

* Block github links as it will flood with 429
  • Loading branch information
manufacturedba authored Sep 22, 2021
1 parent 135a2da commit 0d69dbc
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 52 deletions.
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,27 @@
"validate-links": "remark ."
},
"devDependencies": {
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"pre-commit": "^1.2.2",
"husky": "^4.2.3",
"prettier": "^2.0.1",
"remark-cli": "^7.0.1",
"remark-lint": "^6.0.5",
"remark-lint-no-dead-urls": "^1.0.1",
"remark-lint-no-dead-urls": "^1.1.0",
"remark-validate-links": "^9.0.1"
},
"remarkConfig": {
"plugins": [
"remark-lint-no-dead-urls"
[
"remark-lint-no-dead-urls",
{
"skipLocalhost": true,
"skipUrlPatterns": [
"^(https?://)(codepen.io)",
"^(https?://)(github.com)"
]
}
]
]
},
"dependencies": {
Expand Down

0 comments on commit 0d69dbc

Please sign in to comment.