Skip to content

Commit 0536444

Browse files
committed
feat(rule): add no-doubled-conjunctive-particle-ga and no-doubled-conjunction
- remove no-start-duplicated-conjunction
1 parent 3ba9b16 commit 0536444

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lib/textlint-rule-preset-japanese.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ module.exports = {
1616
"max-ten": {
1717
"max": 3
1818
},
19+
// https://github.com/takahashim/textlint-rule-no-doubled-conjunctive-particle-ga
20+
// 逆接の接続助詞「が」が、同一文中に複数回出現していないかどうか
21+
// e.g.) 今日は早朝から出発したが、定刻には間に合わなかったが、無事会場に到着した。
22+
"no-doubled-conjunctive-particle-ga": true,
23+
// https://github.com/takahashim/textlint-rule-no-doubled-conjunction
24+
// 同じ接続詞が連続して出現していないかどうか
25+
"no-doubled-conjunction": true,
1926
// https://github.com/azu/textlint-rule-no-double-negative-ja
2027
// 二重否定の検出
2128
"no-double-negative-ja": true,
@@ -30,12 +37,6 @@ module.exports = {
3037
"sentence-length": {
3138
"max": 100
3239
},
33-
// https://github.com/azu/textlint-rule-no-start-duplicated-conjunction
34-
// 同じ接続詞で開始してないかを検出
35-
// 2文距離が空いていれば同じ接頭辞を使える
36-
"no-start-duplicated-conjunction": {
37-
"interval": 2
38-
},
3940
// https://github.com/azu/textlint-rule-spellcheck-tech-word
4041
// JavaScript周りの単語スペルチェック
4142
"spellcheck-tech-word": true,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131
"dependencies": {
3232
"textlint-rule-max-ten": "^2.0.0",
3333
"textlint-rule-no-double-negative-ja": "^1.0.3",
34+
"textlint-rule-no-doubled-conjunction": "^1.0.1",
35+
"textlint-rule-no-doubled-conjunctive-particle-ga": "^1.0.2",
3436
"textlint-rule-no-doubled-joshi": "^3.0.0",
3537
"textlint-rule-no-mix-dearu-desumasu": "^1.4.0",
36-
"textlint-rule-no-start-duplicated-conjunction": "^1.0.6",
3738
"textlint-rule-prh": "^3.0.1",
3839
"textlint-rule-sentence-length": "^1.0.4",
3940
"textlint-rule-spellcheck-tech-word": "^5.0.0"

0 commit comments

Comments
 (0)