Skip to content

Commit

Permalink
Support jshint via npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Christine Emrich committed Aug 26, 2020
1 parent 176b407 commit 0e46d62
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{
"node": true,
"esnext": true
"esversion": 8,
"node": true,
"mocha": true,
"bitwise": true,
"curly": true,
"eqeqeq": true,
"newcap": true,
"noarg" : true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"quotmark": "double",
"undef": true,
"unused": true,
"strict": "implied",
"varstmt": true
}
167 changes: 167 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "mocha"
"test": "npm run lint && mocha",
"lint": "npx jshint . --exclude node_modules || true"
},
"author": "Christine Coenen",
"license": "MIT",
Expand All @@ -19,6 +20,7 @@
"xml2js": "^0.4.23"
},
"devDependencies": {
"jshint": "^2.12.0",
"mocha": "^8.1.2"
}
}

0 comments on commit 0e46d62

Please sign in to comment.