Skip to content

Commit

Permalink
Add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 26, 2014
1 parent c9a0045 commit adb089d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .eslintrc
@@ -0,0 +1,9 @@
{
"env": {
"node": true,
"browser": true
},
"rules": {
"quotes": [2, "single"]
}
}
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -13,6 +13,7 @@
},
"author": "Titus Wormer <tituswormer@gmail.com>",
"devDependencies": {
"eslint": "^0.9.0",
"istanbul": "^0.3.0",
"jscs": "^1.0.0",
"jshint": "^2.0.0",
Expand All @@ -22,6 +23,9 @@
"scripts": {
"test": "node_modules/.bin/_mocha --reporter spec --check-leaks -u exports test.js",
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- test.js",
"lint-style": "node_modules/.bin/jscs index.js test.js --reporter=inline"
"lint-api": "node_modules/.bin/eslint index.js",
"lint-test": "node_modules/.bin/eslint test.js --env mocha",
"lint-style": "node_modules/.bin/jscs index.js test.js --reporter=inline",
"lint": "npm run lint-api && npm run lint-test && npm run lint-style"
}
}

0 comments on commit adb089d

Please sign in to comment.