Permalink
Please sign in to comment.
Browse files
- create a lint configuration for the project
- add eslint scripts task - apply consistent formatting to index.js (remove rogue tabs, unwrap json blocks, comment unused method arguments, add missing semicolons, clean up try/catch blocks, consistent quote marks)
- Loading branch information...
Showing
with
383 additions
and 316 deletions.
- +2 −0 .eslintignore
- +29 −0 .eslintrc
- +348 −316 index.js
- +4 −0 package.json
| @@ -0,0 +1,2 @@ | ||
| +/node_modules | ||
| +/tmp |
| @@ -0,0 +1,29 @@ | ||
| +{ | ||
| + "extends": "eslint:recommended", | ||
| + "parser": "esprima", | ||
| + "env": { | ||
| + "browser": true, | ||
| + "node": false | ||
| + }, | ||
| + "globals": { | ||
| + "require": false, | ||
| + "module": false | ||
| + }, | ||
| + "rules": { | ||
| + "semi": 2, | ||
| + "no-console": [ | ||
| + 0, | ||
| + { | ||
| + "allow": [ | ||
| + "error" | ||
| + ] | ||
| + } | ||
| + ], | ||
| + "key-spacing": [ | ||
| + 2, | ||
| + { | ||
| + "afterColon": true | ||
| + } | ||
| + ] | ||
| + } | ||
| +} |
Oops, something went wrong.
0 comments on commit
a1be7b6