Skip to content

Commit

Permalink
Set up eslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed May 30, 2016
1 parent 38bc820 commit da452fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/coverage/
/unexpected-magicpen.min.js
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'onelint'
]
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "MagicPen plugin for the Unexpected assertion library",
"main": "lib/unexpected-magicpen.js",
"scripts": {
"lint": "jshint .",
"lint": "eslint .",
"test": "mocha && npm run lint",
"travis": "npm test && npm run coverage && (<coverage/lcov.info coveralls || true)",
"coverage": "NODE_ENV=development nyc --reporter=lcov --reporter=text -- mocha --reporter dot && echo google-chrome coverage/lcov-report/index.html",
Expand All @@ -30,6 +30,8 @@
"browserify": "13.0.1",
"bundle-collapser": "1.2.1",
"coveralls": "2.11.9",
"eslint": "2.11.1",
"eslint-config-onelint": "1.1.0",
"mocha": "2.5.3",
"nyc": "6.4.4",
"unexpected": "unexpectedjs/unexpected#feature/unexpected-magicpen"
Expand Down

0 comments on commit da452fa

Please sign in to comment.