Skip to content

Commit 916e0f8

Browse files
committed
feat: use ci for textlint
1 parent 63b3be9 commit 916e0f8

File tree

7 files changed

+62
-4261
lines changed

7 files changed

+62
-4261
lines changed

.circleci/config.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
- image: circleci/node:lts
10+
11+
working_directory: ~/doc
12+
13+
steps:
14+
- checkout
15+
- run: >
16+
yarn global add
17+
textlint
18+
@textlint-rule/textlint-rule-no-invalid-control-character
19+
textlint-filter-rule-whitelist
20+
textlint-rule-preset-ja-spacing
21+
textlint-rule-preset-jtf-style
22+
- run: yarn textlint:ja

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# dependencies
2-
yarn.lock
2+
package-lock.json
33
node_modules
44

55
# logs

.textlintrc

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"rules": {
3+
"preset-jtf-style": {
4+
"2.1.6.カタカナの長音": false,
5+
"3.1.1.全角文字と半角文字の間": false,
6+
"4.2.6.ハイフン(-)": false,
7+
"4.2.7.コロン(:)": false,
8+
"4.3.2.大かっこ[]": false
9+
},
10+
"preset-ja-spacing": {
11+
"ja-nakaguro-or-halfwidth-space-between-katakana": true,
12+
"ja-no-space-around-parentheses": true,
13+
"ja-no-space-between-full-width": true,
14+
"ja-space-between-half-and-full-width": {
15+
"space": "always"
16+
},
17+
"ja-space-after-exclamation": false,
18+
"ja-space-after-question": false,
19+
"ja-space-around-code": {
20+
"before": true,
21+
"after": true
22+
}
23+
},
24+
"@textlint-rule/no-invalid-control-character": true
25+
},
26+
"filters": {
27+
"whitelist": {
28+
"allow": [
29+
"/.?\\d+/"
30+
]
31+
}
32+
}
33+
}

ja/api/components-nuxt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ description: レイアウト内でページコンポーネントを表示しま
5050
```
5151

5252
- name:`string` (_Nuxt v2.4.0で導入されました_)
53-
- この prop は `<router-view/>` に設定され、ページコンポーネントの名前付きビューをレンダリングするのに利用されます
53+
- この prop は `<router-view/>` に設定され、ページコンポーネントの名前付きビューをレンダリングするのに利用されます
5454
- デフォルト: `default`
5555

5656
実際の例を見たいときは [名前付きビューの例](/examples/named-views) を参照してください。

0 commit comments

Comments
 (0)