Skip to content

Commit

Permalink
Add and configure ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Cheung committed Jun 4, 2015
1 parent e88fc7a commit bd2b1b4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 71 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{

"env": {
"node": true
},
"rules": {
"quotes": [2, "single"]
}
}
1 change: 1 addition & 0 deletions example/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';

/**
* Module dependencies.
Expand Down
69 changes: 0 additions & 69 deletions jshint.cfg

This file was deleted.

1 change: 1 addition & 0 deletions lib/swagger-express/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';

// This is the Swagger object that conforms to the Swagger 2.0 specification.
module.swaggerObject = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Document your Express REST API with Swagger.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "./node_modules/eslint/bin/eslint.js **/*.js || exit 0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit bd2b1b4

Please sign in to comment.