Skip to content

Commit bf693bc

Browse files
committed
chore(deps): update kuromojin@2 && use textlint-script
1 parent 6ca6a0d commit bf693bc

File tree

5 files changed

+4337
-29
lines changed

5 files changed

+4337
-29
lines changed

.babelrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,16 @@
2727
"test": "test"
2828
},
2929
"scripts": {
30-
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
31-
"watch": "babel src --out-dir lib --watch --source-maps",
30+
"build": "textlint-scripts build",
31+
"watch": "textlint-scripts build --watch",
3232
"prepublish": "npm run --if-present build",
33-
"test": "mocha && npm run build && textlint --rulesdir lib/ README.md"
33+
"test": "textlint-scripts test"
3434
},
3535
"devDependencies": {
36-
"babel-cli": "^6.10.1",
37-
"babel-preset-es2015": "^6.9.0",
38-
"babel-preset-jsdoc-to-assert": "^4.0.0",
39-
"babel-preset-power-assert": "^1.0.0",
40-
"babel-register": "^6.9.0",
41-
"mocha": "^3.2.0",
42-
"power-assert": "^1.4.1",
43-
"textlint": "^7.0.1",
44-
"textlint-tester": "^2.0.0"
36+
"textlint-scripts": "^3.0.0"
4537
},
4638
"dependencies": {
47-
"kuromojin": "^1.0.2",
39+
"kuromojin": "^2.0.0",
4840
"sentence-splitter": "^2.0.0",
4941
"structured-source": "^3.0.2",
5042
"textlint-rule-helper": "^2.0.0"

src/max-ten.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function(context, options = {}) {
7373
tokens.forEach((token, index) => {
7474
let surface = token.surface_form;
7575
if (surface === "、") {
76-
// 名詞に過去まわれている場合は例外とする
76+
// 名詞に囲まわれている場合は例外とする
7777
let isSandwiched = isSandwichedMeishi({
7878
before: tokens[index - 1],
7979
token: token,
@@ -106,4 +106,4 @@ module.exports = function(context, options = {}) {
106106
});
107107
}
108108
}
109-
}
109+
}

test/mocha.opts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)