Skip to content

Commit 97a95da

Browse files
committed
fix(deps): update kuromojin@2
1 parent 620f8ab commit 97a95da

File tree

3 files changed

+2456
-2175
lines changed

3 files changed

+2456
-2175
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
],
3434
"description": "ら抜き言葉を検出するtextlint rule",
3535
"devDependencies": {
36-
"husky": "^1.3.1",
37-
"lint-staged": "^8.1.0",
36+
"husky": "^4.2.5",
37+
"lint-staged": "^10.2.11",
3838
"power-assert": "^1.4.1",
39-
"prettier": "^1.15.3",
40-
"textlint-scripts": "^2.1.0"
39+
"prettier": "^2.0.5",
40+
"textlint-scripts": "^3.0.0"
4141
},
4242
"dependencies": {
43-
"kuromojin": "^1.2.1",
44-
"textlint-rule-helper": "^1.1.4"
43+
"kuromojin": "^2.0.0",
44+
"textlint-rule-helper": "^2.1.1"
4545
},
4646
"prettier": {
4747
"singleQuote": false,

src/no-dropping-the-ra.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// LICENSE : MIT
22
"use strict";
33
import { RuleHelper } from "textlint-rule-helper";
4-
import kuromojin from "kuromojin";
4+
import { tokenize } from "kuromojin";
55

66
function isTargetVerb(token) {
77
return (
@@ -20,7 +20,7 @@ function isKoreru(token) {
2020
return token.pos == "動詞" && token.basic_form == "来れる";
2121
}
2222

23-
module.exports = function(context) {
23+
module.exports = function (context) {
2424
const helper = new RuleHelper(context);
2525
const { Syntax, report, getSource, RuleError } = context;
2626
return {
@@ -29,7 +29,7 @@ module.exports = function(context) {
2929
return;
3030
}
3131
const text = getSource(node);
32-
return kuromojin(text).then(tokens => {
32+
return tokenize(text).then(tokens => {
3333
tokens.forEach(token => {
3434
if (isKoreru(token)) {
3535
report(

0 commit comments

Comments
 (0)