-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added eslint and fixed all errors (#36)
* Added eslint and fixed all errors * Moved eslint ignores * Fixed some request changes * Added exported clauses * Fixed config error * Moved eslint configurations around and added comments
- Loading branch information
1 parent
c4a2302
commit b1e95b4
Showing
7 changed files
with
1,666 additions
and
17 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,82 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"globals": { | ||
"p5": true, | ||
"assert": true, | ||
"expect": true, | ||
"sinon": true, | ||
"birdSprite": true, | ||
"pipePeakSprite": true, | ||
"pipeBodySprite": true, | ||
"Bird": true, | ||
"Pipe": true, | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"p5js", | ||
"p5js/dom" | ||
], | ||
"rules": { | ||
"arrow-parens": [ | ||
"error" | ||
], | ||
"brace-style": [ | ||
"error", | ||
"1tbs" | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"only-multiline" | ||
], | ||
"keyword-spacing": [ | ||
"error", | ||
{ | ||
"before": true, | ||
"after": true | ||
} | ||
], | ||
"max-len":[ | ||
"error", | ||
{ | ||
"code": 100, | ||
"ignoreUrls": true | ||
}, | ||
], | ||
"max-params": [ | ||
"error", | ||
6 | ||
], | ||
"no-cond-assign": [ | ||
2, | ||
"except-parens" | ||
], | ||
"eqeqeq": ["error", "smart"], | ||
"no-use-before-define": [ | ||
2, | ||
{ | ||
"functions": false | ||
} | ||
], | ||
"new-cap": 0, | ||
"no-caller": 2, | ||
"no-undef": 2, | ||
"no-unused-vars": ["error", { "args": "none" }], | ||
"no-empty": ["error", { "allowEmptyCatch": true }], | ||
"no-console": "off", | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"space-before-blocks": [ | ||
"error", | ||
"always" | ||
] | ||
}, | ||
} |
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 @@ | ||
node_modules/ |
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.