Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Commit

Permalink
Add .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 27, 2014
1 parent 081a73a commit 256a78f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"env": {
"node": true,
"browser": true
},
"rules": {
"quotes": [2, "single"]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "node_modules/.bin/_mocha --reporter spec --check-leaks -u exports test.js",
"test-travis": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports test.js",
"lint": "npm run-script lint-api && npm run-script lint-test && npm run-script lint-style",
"lint-api": "node_modules/.bin/eslint index.js --env node --env browser --rule 'quotes: [2, single]'",
"lint-test": "node_modules/.bin/eslint test.js --env node --env mocha --rule 'quotes: [2, single]'",
"lint-api": "node_modules/.bin/eslint index.js --env node --env browser",
"lint-test": "node_modules/.bin/eslint test.js --env node --env mocha",
"lint-style": "node_modules/.bin/jscs index.js test.js --reporter=inline",
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- test.js",
"make": "npm run-script lint && npm run-script coverage"
Expand Down

0 comments on commit 256a78f

Please sign in to comment.