File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 2
2
"devDependencies" : {
3
3
"node-sass" : " ^4.13.1" ,
4
4
"sass-loader" : " ^8.0.2" ,
5
+ "shelljs" : " ^0.8.4" ,
6
+ "textlint" : " ^11.7.6" ,
7
+ "textlint-checker-for-vuejs-jp-docs" : " git+https://github.com/vuejs-jp/textlint-checker-for-vuejs-jp-docs.git" ,
8
+ "textlint-plugin-jtf-style" : " ^1.0.1" ,
9
+ "textlint-rule-detect-bad-chars" : " ^1.0.2" ,
10
+ "textlint-rule-no-mix-dearu-desumasu" : " ^4.0.1" ,
5
11
"vuepress" : " ^1.5.4"
6
12
},
7
13
"scripts" : {
8
14
"serve" : " vuepress dev src" ,
9
- "build" : " vuepress build src"
15
+ "build" : " vuepress build src" ,
16
+ "test" : " npm run lint" ,
17
+ "lint" : " node -e \" var shell=require('shelljs');var files=shell.find(['./src/**/*.md']).filter(function(file){return !file.endsWith('/guide/team.md')}).join(' ');if(shell.exec('textlint --rulesdir ./node_modules/textlint-checker-for-vuejs-jp-docs/rules/textlint-rule-vue-jp-docs -f pretty-error '+files).code!==0){shell.exit(1)};\" "
10
18
},
11
19
"dependencies" : {
12
20
"@docsearch/css" : " ^1.0.0-alpha.27" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "rules": {
3
+ "textlint-rule-detect-bad-chars": {
4
+
5
+ },
6
+ "preset-jtf-style": {
7
+ "1.1.3.箇条書き": false,
8
+ "2.1.5.カタカナ": false,
9
+ "2.1.6.カタカナの長音": false,
10
+ "3.1.1.全角文字と半角文字の間": false,
11
+ "3.1.2.全角文字どうし": false,
12
+ "4.2.6.ハイフン(-)": false,
13
+ "4.2.7.コロン(:)": false,
14
+ "4.3.1.丸かっこ()": false,
15
+ "4.3.2.大かっこ[]": false
16
+ },
17
+ "no-mix-dearu-desumasu": {
18
+ "preferInHeader": "",
19
+ "preferInBody": "ですます",
20
+ "preferInList": "ですます",
21
+ "strict": true
22
+ }
23
+ }
24
+ }
You can’t perform that action at this time.
0 commit comments