Skip to content

Commit 40d46d4

Browse files
committed
Add node-version-check to avoid linting on usupported nodes
1 parent 09a037b commit 40d46d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@
2222
"eslint-plugin-standard": "^2.0.0",
2323
"istanbul": "^0.4.4",
2424
"mocha": "^3.0.2",
25+
"node-version-check": "^2.1.0",
2526
"rimraf": "^2.5.4",
2627
"should": "^11.0.0",
2728
"sinon": "^1.17.5"
2829
},
2930
"scripts": {
3031
"clean": "rimraf coverage/",
3132
"cover": "istanbul cover _mocha",
32-
"lint": "eslint index.js test/main.js",
33+
"lint": "node-version-gte-4 && eslint index.js test/main.js || node-version-lt-4",
3334
"precover": "npm run lint && npm run clean",
3435
"pretest": "npm run lint",
3536
"test": "mocha"

0 commit comments

Comments
 (0)