forked from ladjs/supertest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor source code to use eslint with airbnb legacy rules.
- Loading branch information
Showing
6 changed files
with
352 additions
and
283 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,28 @@ | ||
{ | ||
"extends": "airbnb/legacy", | ||
"env": { | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"rules": { | ||
// disabled - disagree with airbnb | ||
"func-names": [0], | ||
"space-before-function-paren": [0], | ||
"padded-blocks": [0], | ||
"consistent-return": [0], | ||
|
||
// Disabled but may want to refactor code eventually | ||
"no-proto": [1], | ||
"no-shadow": [1], | ||
|
||
// IMHO, more sensible overrides to existing airbnb error definitions | ||
"max-len": [2, 100, 4, {"ignoreComments": true, "ignoreUrls": true}], | ||
"comma-dangle": [2, "never"], | ||
"no-multi-spaces": [2, { "exceptions": { "VariableDeclarator": true, "Property": true } }], | ||
"no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }], | ||
"no-use-before-define": [2, "nofunc"], | ||
"no-param-reassign": [2, {"props": false}], | ||
"no-cond-assign": [2, "except-parens"], | ||
"no-return-assign": [2, "except-parens"] | ||
} | ||
} |
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,8 @@ | ||
{ | ||
"rules": { | ||
// errors - disabled for chai test support | ||
"no-unused-expressions": [0], | ||
// allow function args for superagent | ||
"no-unused-vars": [2, {"args": "none"}] | ||
} | ||
} |
Oops, something went wrong.