Skip to content

Commit 3cec429

Browse files
committed
GH Actions: add Remark lint
1 parent f99d3e5 commit 3cec429

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/workflows/basic-qa.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
name: 'Lint Markdown'
1919
uses: PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
2020

21+
remark:
22+
name: 'QA Markdown'
23+
uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
24+
2125
yamllint:
2226
name: 'Lint Yaml'
2327
uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main

.remarkignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore rules for Remark.
2+
# Docs: https://github.com/unifiedjs/unified-engine/blob/HEAD/doc/ignore.md
3+
4+
/build/
5+
/node_modules/

.remarkrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"plugins": [
3+
"remark-gfm",
4+
["remark-lint-checkbox-character-style", "consistent"],
5+
["remark-lint-checkbox-content-indent", "consistent"],
6+
"remark-lint-definition-spacing",
7+
"remark-lint-file-extension",
8+
["remark-lint-linebreak-style", "unix"],
9+
["remark-lint-link-title-style", "\""],
10+
["remark-lint-ordered-list-marker-style", "."],
11+
"remark-lint-no-dead-urls",
12+
"remark-lint-no-duplicate-defined-urls",
13+
"remark-lint-no-duplicate-definitions",
14+
"remark-lint-no-empty-url",
15+
"remark-lint-no-file-name-consecutive-dashes",
16+
"remark-lint-no-file-name-irregular-characters",
17+
"remark-lint-no-file-name-outer-dashes",
18+
"remark-lint-no-heading-like-paragraph",
19+
"remark-lint-no-literal-urls",
20+
"remark-lint-no-reference-like-url",
21+
"remark-lint-no-shortcut-reference-image",
22+
"remark-lint-no-table-indentation",
23+
"remark-lint-no-undefined-references",
24+
"remark-lint-no-unneeded-full-reference-image",
25+
"remark-lint-no-unneeded-full-reference-link",
26+
"remark-lint-no-unused-definitions",
27+
["remark-lint-strikethrough-marker", "~~"],
28+
["remark-lint-table-cell-padding", "consistent"],
29+
"remark-lint-heading-whitespace",
30+
"remark-lint-list-item-punctuation",
31+
"remark-lint-match-punctuation",
32+
"remark-lint-no-hr-after-heading",
33+
"remark-lint-are-links-valid-duplicate",
34+
"remark-validate-links"
35+
]
36+
}

0 commit comments

Comments
 (0)