Skip to content

style(textlint): fix textlinterror #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .textlintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"max": 3
},
"no-nfd": true,
"max-kanji-continuous-len": true,
"no-doubled-conjunctive-particle-ga": true,
"no-doubled-conjunction": true,
"no-double-negative-ja": true,
Expand Down
3 changes: 2 additions & 1 deletion coverage.textlintrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"rules": {
// strictオプションの有効化
// strictオプションの有効化
"max-ten": {
"max": 3,
"strict": true
},
"unexpanded-acronym": true,
"no-nfd": true,
"max-kanji-continuous-len": true,
"no-doubled-conjunctive-particle-ga": true,
"no-doubled-conjunction": true,
"no-double-negative-ja": true,
Expand Down
4 changes: 2 additions & 2 deletions ja/gulp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ export function prefixStream(prefix) {

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

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

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

gulpプラグインは[vinyl](https://github.com/gulpjs/vinyl "vinyl")オブジェクトのデータをプラグイン同士でやり取りし、
そのインタフェースとして既存のNode.js Streamを使っていると言えます。
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"textlint": "^6.1.0",
"textlint-formatter-codecov": "^1.0.2",
"textlint-formatter-lcov": "^1.0.2",
"textlint-rule-max-kanji-continuous-len": "^1.0.1",
"textlint-rule-max-ten": "^2.0.0",
"textlint-rule-no-double-negative-ja": "^1.0.2",
"textlint-rule-no-doubled-conjunction": "^1.0.1",
Expand Down