File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ technological-book-corpus-ja | xargs textlint --rule textlint-no-todo -f pretty-
33
33
34
34
開発中のルールをコーパスでテストする方法。
35
35
36
- ルールのプロジェクトディレクトリでルール自体を ` . ` でグローバルインストールする 。
36
+ ` --prefix tmp/ ` で一時的なディレクトリにインストールして確認する 。
37
37
38
38
``` sh
39
- npm i -g . textlint technological-book-corpus-ja
39
+ mkdir tmp/
40
+ npm i . textlint technological-book-corpus-ja --prefix tmp/
41
+ cd tmp
40
42
# --rule でルール名を指定する
41
- technological-book-corpus-ja | xargs textlint --rule textlint-my-rule -f pretty-error --no-textlintrc
43
+ technological-book-corpus-ja | xargs textlint --rule textlint-rule- my-rule -f pretty-error --no-textlintrc
42
44
```
43
45
44
46
## Install
@@ -65,7 +67,7 @@ Install with [npm](https://www.npmjs.com/):
65
67
/Users/technological-book-corpus-ja/source/js-primer/operator/README.md
66
68
/Users/technological-book-corpus-ja/source/js-primer/read-eval-print/README.md
67
69
/Users/technological-book-corpus-ja/source/js-primer/README.md
68
- /Users/technological-book-corpus-ja/source/js-primer/statement-expression/README.md
70
+ /Users/technological-book-corpus-ja/source/js-primer/statement-expression/README.md
69
71
/Users/technological-book-corpus-ja/source/js-primer/string/README.md
70
72
/Users/technological-book-corpus-ja/source/js-primer/variables/README.md
71
73
You can’t perform that action at this time.
0 commit comments