]> source.dussan.org Git - svg.js.git/commitdiff
added linter which can be run with `npm run lint`
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Sat, 18 Mar 2017 11:53:56 +0000 (12:53 +0100)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Sat, 18 Mar 2017 11:53:56 +0000 (12:53 +0100)
package.json

index 5bc5c8008477db63451b99d3cbb6a15372b7d955..2296853b3a2f9940a813747bbcc13b38ee7067e3 100644 (file)
@@ -57,7 +57,8 @@
     "build": "gulp",
     "build:test": "gulp unify",
     "test": "karma start .config/karma.conf.js --single-run",
-    "test:quick": "karma start .config/karma.quick.js"
+    "test:quick": "karma start .config/karma.quick.js",
+    "lint": "standard --verbose | snazzy"
   },
   "devDependencies": {
     "coveralls": "^2.11.15",
     "karma-firefox-launcher": "^1.0.0",
     "karma-jasmine": "^1.0.2",
     "karma-phantomjs-launcher": "^1.0.2",
-    "request": "^2.78.0"
+    "request": "^2.78.0",
+    "snazzy": "^6.0.0",
+    "standard": "^9.0.1"
+  },
+  "standard": {
+    "ignore": [
+      "/dist",
+      "/src/umd.js"
+    ],
+    "globals": [
+      "SVG"
+    ]
   }
 }