Skip to content

Commit d207f23

Browse files
committed
chore(npm): update textlint to 4.0.0
1 parent 4f8333f commit d207f23

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"prh"
3333
],
3434
"dependencies": {
35-
"prh": "^0.6.0",
35+
"prh": "^0.7.0",
3636
"structured-source": "^3.0.2",
3737
"textlint-rule-helper": "^1.1.3"
3838
},
@@ -41,6 +41,6 @@
4141
"espower-babel": "^3.3.0",
4242
"mocha": "^2.3.2",
4343
"power-assert": "^1.0.0",
44-
"textlint": "^3.3.2"
44+
"textlint": "^4.0.0"
4545
}
4646
}

src/prh-rule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ Please set .textlinrc:
5151
line start with 1
5252
column start with 0
5353
54-
adjust position => line -1, column + 1
54+
adjust position => line -1, column +0
5555
*/
5656
var position = src.indexToPosition(changeSet.index);
5757

5858
// line, column
5959
context.report(node, new RuleError(changeSet.matches[0] + " => " + expected, {
6060
line: position.line - 1,
61-
column: position.column + 1
61+
column: position.column
6262
}));
6363
});
6464
}

test/textlintrc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe(".textlinrc test", function () {
1111
"prh": rule
1212
}, {
1313
"prh": {
14-
"rulePaths": ["./rule.yaml"]
14+
"rulePaths": [path.join(__dirname, "fixtures", "rule.yaml")]
1515
}
1616
}, {
1717
"configFile": path.join(__dirname, "fixtures", ".textlintrc")

0 commit comments

Comments
 (0)