Skip to content

Commit 1e186e4

Browse files
committed
Add ESLint to package.json
This change adds ESLint as a dev-dependency and adds a lint script that will run ESLint.
1 parent 94ad6d4 commit 1e186e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "JSON Web Token implementation (symmetric and asymmetric)",
55
"main": "index.js",
66
"scripts": {
7-
"test": "nyc --reporter=html --reporter=text mocha && nsp check && cost-of-modules"
7+
"lint": "eslint .",
8+
"test": "npm run lint && nyc --reporter=html --reporter=text mocha && nsp check && cost-of-modules"
89
},
910
"repository": {
1011
"type": "git",
@@ -34,6 +35,7 @@
3435
"chai": "^1.10.0",
3536
"conventional-changelog": "~1.1.0",
3637
"cost-of-modules": "^1.0.1",
38+
"eslint": "^4.19.1",
3739
"mocha": "^2.1.0",
3840
"nsp": "^2.6.2",
3941
"nyc": "^11.8.0",

0 commit comments

Comments
 (0)