Skip to content

Commit

Permalink
Use AST parsing for lint file checking (github#17471)
Browse files Browse the repository at this point in the history
* Add markdown parsing dependencies

* Use it for the link test

* Use ast tests for hard-coded language

* Dedupe visiting for links

* Add new mdast utils to check-deps exclusions
  • Loading branch information
JasonEtco authored Jan 26, 2021
1 parent 2680b8d commit b4171bf
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 68 deletions.
264 changes: 251 additions & 13 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"linkinator": "^2.13.1",
"liquid": "^5.1.0",
"lodash": "^4.17.19",
"mdast-util-from-markdown": "^0.8.4",
"mini-css-extract-plugin": "^0.9.0",
"mkdirp": "^1.0.3",
"morgan": "^1.9.1",
Expand All @@ -86,6 +87,7 @@
"slash": "^3.0.0",
"strip-html-comments": "^1.0.0",
"style-loader": "^1.2.1",
"unist-util-visit": "^2.0.3",
"uuid": "^8.3.0",
"walk-sync": "^1.1.4",
"webpack": "^4.44.0",
Expand Down
Loading

0 comments on commit b4171bf

Please sign in to comment.