Skip to content

Commit

Permalink
fix(deps): update to kuromojin@3 (#6)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bizen241 authored Apr 24, 2021
1 parent 06c279b commit 76a27f2
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 339 deletions.
2 changes: 2 additions & 0 deletions .githook/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx --no-install lint-staged
22 changes: 8 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,32 @@
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "textlint-scripts test",
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\""
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
"prepare": "git config --local core.hooksPath .githook"
},
"keywords": [
"textlint",
"textlintrule"
],
"description": "ら抜き言葉を検出するtextlint rule",
"devDependencies": {
"husky": "^4.3.0",
"lint-staged": "^10.4.2",
"power-assert": "^1.4.1",
"prettier": "^2.1.2",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"textlint-scripts": "^3.0.0"
},
"dependencies": {
"kuromojin": "^2.0.0",
"kuromojin": "^3.0.0",
"textlint-rule-helper": "^2.1.1"
},
"prettier": {
"singleQuote": false,
"printWidth": 120,
"tabWidth": 4
},
"husky": {
"hooks": {
"precommit": "lint-staged"
}
"tabWidth": 4,
"trailingComma": "none"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,css}": [
"prettier --write",
"git add"
"prettier --write"
]
}
}
4 changes: 2 additions & 2 deletions src/no-dropping-the-ra.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ module.exports = function (context) {
return;
}
const text = getSource(node);
return tokenize(text).then(tokens => {
tokens.forEach(token => {
return tokenize(text).then((tokens) => {
tokens.forEach((token) => {
if (isSpecialCases(token)) {
report(
node,
Expand Down
Loading

0 comments on commit 76a27f2

Please sign in to comment.