Skip to content

Commit 0ec2f94

Browse files
authored
chore: add textlint linting for documentation (#14)
1 parent fac7115 commit 0ec2f94

File tree

10 files changed

+4791
-12
lines changed

10 files changed

+4791
-12
lines changed

.github/workflows/docs.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
setup:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
- uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
18+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
19+
id: cache-node-modules
20+
with:
21+
path: docs/node_modules
22+
key: ${{ runner.os }}-docs-${{ hashFiles('docs/package-lock.json') }}
23+
- working-directory: docs/
24+
run: npm ci
25+
26+
textlint:
27+
needs: setup
28+
runs-on: ubuntu-24.04
29+
steps:
30+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
- uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
32+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
33+
id: cache-node-modules
34+
with:
35+
path: docs/node_modules
36+
key: ${{ runner.os }}-docs-${{ hashFiles('docs/package-lock.json') }}
37+
- working-directory: docs/
38+
run: npm run textlint

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![integration-tests](https://github.com/textlint/vscode-textlint/actions/workflows/integration-tests.yaml/badge.svg)
44

5-
Extension to integrate [textlint](https://textlint.github.io/) into VSCode.
5+
Extension to integrate [textlint](https://textlint.github.io/) into VS Code.
66

77
## How to install
88

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

docs/.textlintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"plugins": {},
3+
"filters": {
4+
"comments": true
5+
},
6+
"rules": {
7+
"prh": {
8+
"rulePaths": ["./prh.yaml"]
9+
},
10+
"rousseau": {
11+
"showLevels": ["warning", "error"],
12+
"ignoreTypes": ["sentence:uppercase", "passive", "weasel", "readibility"]
13+
},
14+
"unexpanded-acronym": {
15+
"ignore_acronyms": ["SCG", "CLI", "XML", "YAML", "JSON", "TODO", "API", "HTML", "MIT", "FAQ", "VIEW"]
16+
}
17+
}
18+
}

docs/README_EXTENSION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../packages/textlint/README.md

docs/README_ROOT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

0 commit comments

Comments
 (0)