From: Ulrich-Matthias Schäfer Date: Sat, 18 Mar 2017 11:53:56 +0000 (+0100) Subject: added linter which can be run with `npm run lint` X-Git-Tag: 3.0.0~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39e2593a2ca08c548fbcf92e88b772bb051dd589;p=svg.js.git added linter which can be run with `npm run lint` --- diff --git a/package.json b/package.json index 5bc5c80..2296853 100644 --- a/package.json +++ b/package.json @@ -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", @@ -78,6 +79,17 @@ "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" + ] } }