Skip to content

Commit c5ab8b1

Browse files
committed
Enhance markdown linting and spellcheck scripts for language-specific processing
1 parent e51dd13 commit c5ab8b1

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

MARKDOWNLINT_RULES.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,28 @@ npx markdownlint --config .markdownlint.json "en/**/*.md"
9393
# Lint all markdown files
9494
npm run lint:md
9595

96-
# Fix auto-fixable issues
96+
# Lint only English docs
97+
npm run lint:md:en
98+
99+
# Lint only Japanese docs
100+
npm run lint:md:jp
101+
102+
# Fix auto-fixable issues (all files)
97103
npm run lint:md:fix
98104

99-
# Run spell check only
105+
# Run spell check on English docs only
100106
npm run spellcheck
101107

102-
# Run full verification (includes spell check)
108+
# Run spell check on Japanese docs only
109+
npm run spellcheck:jp
110+
111+
# Run full verification on English docs (spell check + linting)
103112
npm run verify
104113

114+
# Run full verification on Japanese docs (spell check + linting)
115+
npm run verify:jp
116+
```
117+
105118
## Auto-Fix Capabilities
106119

107120
### Recommended Workflow

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
"test": "echo \"Error: no test specified\" && exit 1",
1111
"postinstall": "dotnet tool restore",
1212
"lint:md": "markdownlint \"**/*.md\" --config .markdownlint.json",
13+
"lint:md:en": "markdownlint \"en/**/*.md\" --config .markdownlint.json",
14+
"lint:md:jp": "markdownlint \"jp/**/*.md\" --config .markdownlint.json",
1315
"lint:md:fix": "markdownlint \"**/*.md\" --config .markdownlint.json --fix",
1416
"spellcheck": "cspell \"en/**/*.md\"",
1517
"spellcheck:jp": "cspell \"jp/**/*.md\"",
16-
"verify": "npm run spellcheck && npm run lint:md -- \"en/**/*.md\"",
17-
"verify:jp": "npm run spellcheck:jp && npm run lint:md -- \"jp/**/*.md\""
18+
"verify": "npm run spellcheck && npm run lint:md:en",
19+
"verify:jp": "npm run spellcheck:jp && npm run lint:md:jp"
1820
},
1921
"author": "Infragistics",
2022
"license": "ISC",

0 commit comments

Comments
 (0)