🤖 Merge PR #61557 Configure remark by @remcohaszing

By using a remark configuration file, the same checks that were already done inside a workflow command, are now
available inside editors using `remark-language-server`.

The updated remark related dependencies add compatibility with `remark-language-server`, support for GFM, and get rid
of a deprecated dependency.
This commit is contained in:
Remco Haszing
2022-08-15 22:35:19 +02:00
committed by GitHub
parent f12bf84932
commit e292a93617
3 changed files with 10 additions and 3 deletions

View File

@@ -12,4 +12,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: npm install
- run: npx remark --use validate-links --frail . .github
- run: npx remark --frail . .github

6
.remarkrc.json Normal file
View File

@@ -0,0 +1,6 @@
{
"plugins": [
"gfm",
"validate-links"
]
}

View File

@@ -40,8 +40,9 @@
"danger": "^10.1.1",
"jsdom": "^17.0.0",
"prettier": "^2.1.1",
"remark-cli": "^9.0.0",
"remark-validate-links": "^10.0.2",
"remark-cli": "^11.0.0",
"remark-gfm": "^3.0.0",
"remark-validate-links": "^12.0.0",
"source-map-support": "^0.5.21",
"typescript": "next",
"w3c-xmlserializer": "^2.0.0",