-
Notifications
You must be signed in to change notification settings - Fork 292
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 #156 from alexindigo/master
Housecleaning. Added test coverage.
- Loading branch information
Showing
22 changed files
with
226 additions
and
53 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,7 @@ | ||
*.iml | ||
*.sublime-* | ||
*.un~ | ||
.idea | ||
sftp-config.json | ||
node_modules/ | ||
test/tmp/ |
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 |
---|---|---|
@@ -1,33 +1,64 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"browser": false | ||
}, | ||
"rules": { | ||
"indent": [2, 2], | ||
// 2-space indentation | ||
"indent": [2, 2, {"SwitchCase": 1}], | ||
// Require strings to use single quotes | ||
"quotes": [2, "single"], | ||
// Allow only unix line-endings | ||
"linebreak-style": [2, "unix"], | ||
// Always require semicolons | ||
"semi": [2, "always"], | ||
"curly": [2, "all"], | ||
"brace-style": [2, "1tbs", { "allowSingleLine": true }], | ||
// Require curly braces for multi-line control statements | ||
"curly": [2, "multi-line"], | ||
// Always handle callback error cases | ||
"handle-callback-err": [2, "^err"], | ||
// Require JSDoc for all function definitions | ||
"valid-jsdoc": [2, { | ||
"requireReturn": false, | ||
"requireReturnDescription": false, | ||
"prefer": { | ||
"return": "returns" | ||
} | ||
}], | ||
"require-jsdoc": [2, { | ||
"require": { | ||
"FunctionDeclaration": true | ||
} | ||
}], | ||
"no-redeclare": [2, { "builtinGlobals": true }], | ||
"no-shadow": [2, { "builtinGlobals": true, "hoist": "all" }], | ||
// Disallow using variables before they've been defined | ||
// functions are ok | ||
"no-use-before-define": [2, "nofunc"], | ||
"no-shadow-restricted-names": 2, | ||
"no-extra-semi": 2, | ||
// Disallow unused variables | ||
"no-unused-vars": 2, | ||
"no-undef": 2, | ||
// Use if () { } | ||
// ^ space | ||
"space-after-keywords": [2, "always"], | ||
// Use if () { } | ||
// ^ space | ||
"space-before-blocks": [2, "always"], | ||
// eslint can't handle this, so the check is disabled. | ||
"key-spacing": 0, | ||
"strict": 0, | ||
"no-underscore-dangle": 0, | ||
"no-use-before-define": 0, | ||
// Do not force dot-notation | ||
"dot-notation": 0, | ||
"eol-last": 0, | ||
"no-new": 0, | ||
"semi-spacing": 0, | ||
// Allow multi spaces around operators since they are | ||
// used for alignment. This is not consistent in the | ||
// code. | ||
"no-multi-spaces": 0, | ||
"eqeqeq": 0, | ||
"no-mixed-requires": 0 | ||
}, | ||
"env": { | ||
"node": true, | ||
"browser": true | ||
"no-mixed-requires": 0, | ||
"no-console": 0 | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
*.iml | ||
*.log | ||
*.sublime-* | ||
*.un~ | ||
|
||
.idea | ||
|
||
sftp-config.json | ||
|
||
coverage/ | ||
node_modules/ | ||
test/tmp/ |
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,17 @@ | ||
verbose: false | ||
instrumentation: | ||
root: . | ||
extensions: | ||
- .js | ||
default-excludes: true | ||
excludes: ['browser.js'] | ||
reporting: | ||
print: summary | ||
reports: | ||
- lcov | ||
dir: ./coverage | ||
watermarks: | ||
statements: [80, 95] | ||
lines: [80, 95] | ||
functions: [80, 95] | ||
branches: [80, 95] |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
*.iml | ||
*.log | ||
*.sublime-* | ||
*.un~ | ||
|
||
.idea | ||
.gitignore | ||
.istanbul.yml | ||
.npmignore | ||
.travis.yml | ||
|
||
Makefile | ||
sftp-config.json | ||
|
||
coverage/ | ||
node_modules/ | ||
test/ |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
module.exports = FormData; | ||
/* eslint-env browser */ | ||
module.exports = FormData; |
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
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
Oops, something went wrong.