Skip to content

Commit ddc1493

Browse files
committed
Lint sources before testing
1 parent 3c12535 commit ddc1493

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"scripts": {
77
"build": "babel src -d lib --source-maps",
88
"prepublish": "npm run --if-present build",
9-
"test": "mocha"
9+
"test": "npm-run-all lint mocha",
10+
"lint": "eslint src test",
11+
"mocha": "mocha"
1012
},
1113
"keywords": [
1214
"textlint",
@@ -20,6 +22,7 @@
2022
"homepage": "https://github.com/nodaguti/textlint-rule-write-good",
2123
"repository": "nodaguti/textlint-rule-write-good",
2224
"dependencies": {
25+
"npm-run-all": "^1.5.3",
2326
"textlint-rule-helper": "^1.1.5",
2427
"write-good": "^0.9.1"
2528
},

src/write-good.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function reporter(context, options = {}) {
1313
return {
1414
[Syntax.Str](node) {
1515
if (helper.isChildNode(node, [Syntax.BlockQuote])) {
16-
return null;
16+
return;
1717
}
1818

1919
const text = getSource(node);

0 commit comments

Comments
 (0)