Skip to content

Commit b4171bf

Browse files
authored
Use AST parsing for lint file checking (#17471)
* 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
1 parent 2680b8d commit b4171bf

4 files changed

Lines changed: 279 additions & 68 deletions

File tree

package-lock.json

Lines changed: 251 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"linkinator": "^2.13.1",
6666
"liquid": "^5.1.0",
6767
"lodash": "^4.17.19",
68+
"mdast-util-from-markdown": "^0.8.4",
6869
"mini-css-extract-plugin": "^0.9.0",
6970
"mkdirp": "^1.0.3",
7071
"morgan": "^1.9.1",
@@ -86,6 +87,7 @@
8687
"slash": "^3.0.0",
8788
"strip-html-comments": "^1.0.0",
8889
"style-loader": "^1.2.1",
90+
"unist-util-visit": "^2.0.3",
8991
"uuid": "^8.3.0",
9092
"walk-sync": "^1.1.4",
9193
"webpack": "^4.44.0",

0 commit comments

Comments
 (0)