Skip to content

Commit f5e2a0a

Browse files
committed
chore(npm): add npm run textlint:strict
1 parent b5e1949 commit f5e2a0a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

coverage.textlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"rules": {
3+
// strictオプションの有効化
34
"max-ten": {
45
"max": 3,
56
"strict": true
@@ -23,7 +24,11 @@
2324
]
2425
},
2526
"preset-jtf-style": {
27+
// デフォルト無効のオプション
2628
"2.1.2.漢字": true,
29+
"2.1.5.カタカナ": true,
30+
"2.1.6.カタカナの長音": true,
31+
"2.2.1.ひらがなと漢字の使い分け": true,
2732
"4.2.2.疑問符(?)": false,
2833
"4.3.1.丸かっこ()": false
2934
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"test:example": "find ./src -name '*-example.js' | xargs babel-node",
2828
"test:js": "mocha",
2929
"test": "npm-run-all --parallel test:js test:example textlint eslint:md eslint build",
30+
"textlint:strict": "summary-to-path | xargs textlint -c coverage.textlintrc",
3031
"travis:coverage": "summary-to-path | xargs textlint -c coverage.textlintrc -f codecov | codecov"
3132
},
3233
"keywords": [

0 commit comments

Comments
 (0)