Skip to content

Commit ba95db1

Browse files
committed
Configure basic textlint
1 parent a3efd00 commit ba95db1

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

website/.textlintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
rules: {
3+
apostrophe: true,
4+
'@textlint-rule/no-unmatched-pair': true,
5+
'common-misspellings': true,
6+
'stop-words': true,
7+
'write-good': true,
8+
},
9+
}

website/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,21 @@
1010
"write-translations": "docusaurus-write-translations",
1111
"version": "docusaurus-version",
1212
"rename-version": "docusaurus-rename-version",
13+
"lint-docs": "textlint ../docs/**/*.md",
1314
"format-docs": "prettier --write '../docs/**/*.md'"
1415
},
1516
"devDependencies": {
17+
"@textlint-rule/textlint-rule-no-unmatched-pair": "^1.0.7",
1618
"docusaurus": "^1.7.2",
1719
"husky": "^1.3.1",
1820
"lint-staged": "^8.1.0",
19-
"prettier": "^1.15.3"
21+
"prettier": "^1.15.3",
22+
"textlint": "^11.3.1",
23+
"textlint-rule-apostrophe": "^1.0.0",
24+
"textlint-rule-common-misspellings": "^1.0.1",
25+
"textlint-rule-en-capitalization": "^2.0.2",
26+
"textlint-rule-stop-words": "^1.0.17",
27+
"textlint-rule-write-good": "^1.6.2"
2028
},
2129
"lint-staged": {
2230
"linters": {

0 commit comments

Comments
 (0)