-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #324 from visionmedia/eslint-refactor
Eslint refactor
- Loading branch information
Showing
6 changed files
with
348 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"extends": "airbnb/legacy", | ||
"env": { | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"rules": { | ||
// disabled - disagree with airbnb | ||
"func-names": [0], | ||
"space-before-function-paren": [0], | ||
"consistent-return": [0], | ||
|
||
// Disabled but may want to refactor code eventually | ||
"no-proto": [1], | ||
"no-shadow": [1], | ||
"no-use-before-define": [2, "nofunc"], | ||
|
||
// IMHO, more sensible overrides to existing airbnb error definitions | ||
"max-len": [2, 100, 4, {"ignoreComments": true, "ignoreUrls": true}], | ||
"no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"rules": { | ||
// errors - disabled for chai test support | ||
"no-unused-expressions": [0], | ||
// allow function args for superagent | ||
"no-unused-vars": [2, {"args": "none"}], | ||
// allow updates to response for certain tests | ||
"no-param-reassign": [2, {"props": false}] | ||
} | ||
} |
Oops, something went wrong.