Skip to content

Commit 3d4cf5c

Browse files
committed
test: update textlint with preset vuejs-jp
1 parent 44ce407 commit 3d4cf5c

File tree

4 files changed

+801
-557
lines changed

4 files changed

+801
-557
lines changed

.textlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"preset-vuejs-jp": true
4+
}
5+
}

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,16 @@
33
"@vuepress/plugin-pwa": "^1.5.4",
44
"sass": "^1.32.0",
55
"sass-loader": "^8.0.2",
6-
"shelljs": "^0.8.4",
7-
"textlint": "^11.7.6",
8-
"textlint-checker-for-vuejs-jp-docs": "git+https://github.com/vuejs-jp/textlint-checker-for-vuejs-jp-docs.git",
9-
"textlint-plugin-jtf-style": "^1.0.1",
10-
"textlint-rule-detect-bad-chars": "^1.0.2",
11-
"textlint-rule-no-mix-dearu-desumasu": "^4.0.1",
6+
"textlint": "^12.0.0",
7+
"textlint-rule-preset-vuejs-jp": "git+https://github.com/vuejs-jp/textlint-rule-preset-vuejs-jp.git",
128
"vuepress": "^1.5.4"
139
},
1410
"scripts": {
1511
"dev": "yarn serve",
1612
"serve": "vuepress dev src",
1713
"build": "vuepress build src",
1814
"test": "npm run lint",
19-
"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)};\"",
20-
"lint:single": "textlint --rulesdir ./node_modules/textlint-checker-for-vuejs-jp-docs/rules/textlint-rule-vue-jp-docs -f pretty-error"
15+
"lint": "textlint --format pretty-error src/**"
2116
},
2217
"dependencies": {
2318
"@docsearch/css": "^1.0.0-alpha.27",

src/.textlintrc

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)