Skip to content

Commit 1fcf74c

Browse files
committed
chore: add common-misspellings in ci
1 parent 4111fdc commit 1fcf74c

File tree

7 files changed

+20
-41
lines changed

7 files changed

+20
-41
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
textlint-filter-rule-whitelist
2222
textlint-rule-preset-ja-spacing
2323
textlint-rule-preset-jtf-style
24+
textlint-rule-common-misspellings
2425
- run:
25-
name: lint
26-
command: yarn textlint:ja
26+
name: lint-en
27+
command: textlint --config en/.textlintrc.json en/**/*.md
28+
- run:
29+
name: lint-ja
30+
command: textlint --config ja/.textlintrc.json ja/**/*.md

en/.textlintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"rules": {
3+
"common-misspellings": true
4+
},
5+
"filters": {
6+
"whitelist": {
7+
"allow": [
8+
"/.?\\d+/"
9+
]
10+
}
11+
}
12+
}

en/faq/appengine-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ env_variables:
4141
NODE_ENV: 'production'
4242
```
4343
44-
or for flexible enviroment the minimal configuration is:
44+
or for flexible environment the minimal configuration is:
4545
4646
```yaml
4747
runtime: nodejs

en/guide/development-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,6 @@ It is also recommended to enable ESLint hot reloading mode via webpack. This way
207207

208208
<div class="Alert Alert--orange">
209209

210-
One best practice is to add also `"precommit": "npm run lint"` in your package.json to lint your code automatically before commiting your code.
210+
One best practice is to add also `"precommit": "npm run lint"` in your package.json to lint your code automatically before committing your code.
211211

212212
</div>

ja/.textlintrc

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
"name": "nuxt-docs",
33
"version": "1.0.0",
44
"description": "Nuxt.js documentation files",
5-
"scripts": {
6-
"textlint:ja": "textlint --config ja/.textlintrc ja/**/*.md",
7-
"textlint:ja:fix": "textlint --config ja/.textlintrc --fix --format diff ja/**/*.md"
8-
},
95
"repository": {
106
"type": "git",
117
"url": "git+https://github.com/nuxt/docs.git"

0 commit comments

Comments
 (0)