Skip to content

Commit 76a27f2

Browse files
authored
fix(deps): update to kuromojin@3 (#6)
* fix(deps): update kuromojin@3 * fix(deps): update [email protected] * fix(deps): update [email protected] * fix(deps): use core.hooksPath instead of husky * fix(deps): delete an unused property * fix(deps): remove power-assert
1 parent 06c279b commit 76a27f2

File tree

4 files changed

+81
-339
lines changed

4 files changed

+81
-339
lines changed

.githook/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,32 @@
2525
"watch": "textlint-scripts build --watch",
2626
"prepublish": "npm run --if-present build",
2727
"test": "textlint-scripts test",
28-
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\""
28+
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
29+
"prepare": "git config --local core.hooksPath .githook"
2930
},
3031
"keywords": [
3132
"textlint",
3233
"textlintrule"
3334
],
3435
"description": "ら抜き言葉を検出するtextlint rule",
3536
"devDependencies": {
36-
"husky": "^4.3.0",
37-
"lint-staged": "^10.4.2",
38-
"power-assert": "^1.4.1",
39-
"prettier": "^2.1.2",
37+
"lint-staged": "^10.5.4",
38+
"prettier": "^2.2.1",
4039
"textlint-scripts": "^3.0.0"
4140
},
4241
"dependencies": {
43-
"kuromojin": "^2.0.0",
42+
"kuromojin": "^3.0.0",
4443
"textlint-rule-helper": "^2.1.1"
4544
},
4645
"prettier": {
4746
"singleQuote": false,
4847
"printWidth": 120,
49-
"tabWidth": 4
50-
},
51-
"husky": {
52-
"hooks": {
53-
"precommit": "lint-staged"
54-
}
48+
"tabWidth": 4,
49+
"trailingComma": "none"
5550
},
5651
"lint-staged": {
5752
"*.{js,jsx,ts,tsx,css}": [
58-
"prettier --write",
59-
"git add"
53+
"prettier --write"
6054
]
6155
}
6256
}

src/no-dropping-the-ra.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ module.exports = function (context) {
3131
return;
3232
}
3333
const text = getSource(node);
34-
return tokenize(text).then(tokens => {
35-
tokens.forEach(token => {
34+
return tokenize(text).then((tokens) => {
35+
tokens.forEach((token) => {
3636
if (isSpecialCases(token)) {
3737
report(
3838
node,

0 commit comments

Comments
 (0)