Permalink
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...
1 parent 8ff5245 commit a1be7b6dc5afdd3724dca24e528e9846803d70e9 @mutexkid mutexkid committed May 2, 2016
Showing with 383 additions and 316 deletions.
  1. +2 −0 .eslintignore
  2. +29 −0 .eslintrc
  3. +348 −316 index.js
  4. +4 −0 package.json
View
@@ -0,0 +1,2 @@
+/node_modules
+/tmp
View
@@ -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

Please sign in to comment.