-
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.
adds coverage and eslint, fixes linting errors, makes tests better
- Loading branch information
1 parent
6670f04
commit a31d531
Showing
12 changed files
with
80 additions
and
8 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,41 @@ | ||
{ | ||
"rules": { | ||
"camelcase": 0, | ||
"consistent-return": 0, | ||
"curly": [2, "all"], | ||
"dot-notation": 0, | ||
"eol-last": 0, | ||
"eqeqeq": [2, "allow-null"], | ||
"handle-callback-err": 0, | ||
"new-cap": [2, {"capIsNew": false}], | ||
"no-alert": 0, | ||
"no-bitwise": 2, | ||
"no-caller": 2, | ||
"no-debugger": 2, | ||
"no-empty": 2, | ||
"no-eval": 2, | ||
"no-extra-semi": 2, | ||
"no-irregular-whitespace": 0, | ||
"no-multi-spaces": 0, | ||
"no-new": 2, | ||
"no-plusplus": 0, | ||
"no-process-exit": 0, | ||
"no-redeclare": 2, | ||
"no-shadow": 0, | ||
"no-trailing-spaces": [2, { "skipBlankLines": true }], | ||
"no-undef": 2, | ||
"no-underscore-dangle": 0, | ||
"no-unused-vars": [2, { "vars": "all", "args": "none" }], | ||
"no-use-before-define": 0, | ||
"object-shorthand": 0, | ||
"one-var": 0, | ||
"quotes": [2, "single"], | ||
"semi": [2, "always"], | ||
"wrap-iife": [2, "inside"] | ||
}, | ||
"env": { | ||
"node": true, | ||
"mocha": true, | ||
"es6": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
*.log | ||
coverage |
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,4 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- "8" | ||
- "6" | ||
- "6" | ||
after_success: | ||
- npm run coveralls |
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,7 @@ | ||
const mochaEslint = require('mocha-eslint'); | ||
|
||
mochaEslint([ | ||
'./index.js', | ||
'./test/**/*.js', | ||
'!./test/fixtures/**/*.js' | ||
]); |
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,2 +1,6 @@ | ||
var foo = 'foo'; | ||
var bar = false; | ||
var bar = false; | ||
|
||
(function () { | ||
var baz = 1, qux = 2; | ||
})(); |
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,2 +1,6 @@ | ||
var foo = 'foo'; | ||
var bar = false; | ||
var bar = false; | ||
|
||
(function () { | ||
var baz = 1, qux = 2; | ||
})(); |
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,2 +1,6 @@ | ||
const foo = 'foo'; | ||
const bar = false; | ||
const bar = false; | ||
|
||
(function () { | ||
const baz = 1, qux = 2; | ||
})(); |
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 @@ | ||
./test/**/*.spec.js |