Skip to content

Commit

Permalink
Add eslint and eslint-fix npm scripts and tweak eslint config.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange committed May 13, 2016
1 parent d82bd00 commit 4583441
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = {
"rules": {
"indent": [
"error",
2
2,
{ "SwitchCase": 1 }
],
"linebreak-style": [
"error",
Expand All @@ -32,6 +33,9 @@ module.exports = {
"error",
"always"
],
"no-extra-semi": [
"error"
],
"comma-dangle": [
"error",
"always-multiline"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"server": "NODE_ENV=development node server.js",
"plain-server": "live-server --port=4242",
"build": "NODE_ENV=development webpack",
"build-prod": "NODE_ENV=production webpack -p"
"build-prod": "NODE_ENV=production webpack -p",
"eslint": "eslint index.js src",
"eslint-fix": "eslint --fix index.js src"
},
"author": "Markus Stange <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 4583441

Please sign in to comment.