Skip to content

Commit c72ff30

Browse files
committed
fix(rule): use index instead of column
update kuromojin
1 parent dd81c0f commit c72ff30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
"espower-babel": "^4.0.0",
3939
"mocha": "^2.3.3",
4040
"power-assert": "^1.2.0",
41-
"textlint-tester": "^0.4.0"
41+
"textlint-tester": "^1.2.0"
4242
},
4343
"dependencies": {
44-
"kuromojin": "^1.0.1",
44+
"kuromojin": "^1.2.1",
4545
"textlint-rule-helper": "^1.1.4"
4646
}
4747
}

src/no-dropping-the-ra.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default function (context) {
2929
tokens.reduce((prev, current) => {
3030
if (isTargetVerb(prev) && isRaWord(current)) {
3131
report(node, new RuleError("ら抜き言葉を使用しています。", {
32-
column: (current.word_position - 1)
33-
}))
32+
index: (current.word_position - 1)
33+
}));
3434
}
3535
return current;
3636
});

0 commit comments

Comments
 (0)