Skip to content

Commit

Permalink
build: setup textlint
Browse files Browse the repository at this point in the history
  • Loading branch information
re-taro committed Oct 2, 2024
1 parent b887edf commit a47a9b5
Show file tree
Hide file tree
Showing 4 changed files with 3,280 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
27 changes: 27 additions & 0 deletions .textlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"filters": {
"comments": true
},
"rules": {
"preset-overflow-techblog": {
"ja-space-around-code": {
"before": true,
"after": true
},
"ja-space-between-half-and-full-width": {
"space": "always"
},
"sentence-length": {
"max": 150
},
"no-exclamation-question-mark": false,
"ja-no-weak-phrase": false,
"ja-no-successive-word": false,
"ja-no-mixed-period": false
},
"ja-space-around-link": {
"before": true,
"after": true
}
}
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"author": "Rintaro Itokawa <[email protected]> (https://re-taro.dev)",
"license": "ISC",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "textlint src",
"format": "textlint src --fix"
},
"devDependencies": {
"textlint": "14.2.0",
"textlint-filter-rule-comments": "1.2.2",
"textlint-rule-ja-space-around-link": "2.4.2",
"textlint-rule-preset-overflow-techblog": "0.0.2"
}
}
Loading

0 comments on commit a47a9b5

Please sign in to comment.