Skip to content

Commit 0e20c87

Browse files
committed
style(textlint): fix textlinterror (#102)
add textlint-rule-max-kanji-continuous-len
1 parent 2df0793 commit 0e20c87

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Diff for: .textlintrc

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"max": 3
55
},
66
"no-nfd": true,
7+
"max-kanji-continuous-len": true,
78
"no-doubled-conjunctive-particle-ga": true,
89
"no-doubled-conjunction": true,
910
"no-double-negative-ja": true,

Diff for: coverage.textlintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"rules": {
3-
// strictオプションの有効化
3+
// strictオプションの有効化
44
"max-ten": {
55
"max": 3,
66
"strict": true
77
},
88
"unexpanded-acronym": true,
99
"no-nfd": true,
10+
"max-kanji-continuous-len": true,
1011
"no-doubled-conjunctive-particle-ga": true,
1112
"no-doubled-conjunction": true,
1213
"no-double-negative-ja": true,

Diff for: ja/gulp/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ export function prefixStream(prefix) {
213213

214214
やってきたBufferの先頭に`prefix`の文字列をBufferとして結合して返すだけの処理が行われています。
215215

216-
この変換処理自体は、gulpに依存したものではないため、通常のライブラリに渡して処理するということが可能です。
216+
この変換処理はgulpに依存したものではないため、通常のライブラリに渡して処理するということが可能です。
217217
BufferはStringと相互変換が可能なので、多くのgulpプラグインと呼ばれるものは、`gulpPrefixer``prefixBuffer`にあたる部分だけを実装しています。
218218

219-
つまり、prefixを付けるといった変換処理自体は、既存のライブラリで行うことができるようになっています。
219+
つまり、prefixを付けるといった変換処理は、既存のライブラリで行うことができるようになっています。
220220

221221
gulpプラグインは[vinyl](https://github.com/gulpjs/vinyl "vinyl")オブジェクトのデータをプラグイン同士でやり取りし、
222222
そのインタフェースとして既存のNode.js Streamを使っていると言えます。

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"textlint": "^6.1.0",
6666
"textlint-formatter-codecov": "^1.0.2",
6767
"textlint-formatter-lcov": "^1.0.2",
68+
"textlint-rule-max-kanji-continuous-len": "^1.0.1",
6869
"textlint-rule-max-ten": "^2.0.0",
6970
"textlint-rule-no-double-negative-ja": "^1.0.2",
7071
"textlint-rule-no-doubled-conjunction": "^1.0.1",

0 commit comments

Comments
 (0)