Skip to content

Commit 1c089f1

Browse files
committed
Use eslint instead of jshint
1 parent bc96bab commit 1c089f1

File tree

5 files changed

+25
-49
lines changed

5 files changed

+25
-49
lines changed

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Compiled by webpack
2+
test/output
3+
4+
# Fake node_modules folder for tests
5+
test/node_modules

.eslintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": [
3+
"peerigon/base"
4+
],
5+
"env": {
6+
"node": true
7+
},
8+
"root": true
9+
}

.jshintrc

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

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"create-spec": "node test/tools/runCreateSpec.js",
99
"pretest": "npm run create-spec",
1010
"test": "nyc --all mocha -R spec -t 10000",
11+
"posttest": "npm run lint",
1112
"travis:test": "npm test",
12-
"appveyor:test": "npm test"
13+
"appveyor:test": "npm test",
14+
"lint": "eslint lib test"
1315
},
1416
"engines": {
1517
"node": ">=4.0.0"
@@ -23,6 +25,9 @@
2325
},
2426
"devDependencies": {
2527
"css-loader": "^0.26.2",
28+
"eslint": "^3.17.1",
29+
"eslint-config-peerigon": "^9.0.0",
30+
"eslint-plugin-jsdoc": "^2.4.0",
2631
"extract-text-webpack-plugin": "^2.1.0",
2732
"less": "^2.6.1",
2833
"mocha": "^3.2.0",

test/.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"peerigon/tests"
4+
]
5+
}

0 commit comments

Comments
 (0)