From 39e2593a2ca08c548fbcf92e88b772bb051dd589 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich-Matthias=20Sch=C3=A4fer?= Date: Sat, 18 Mar 2017 12:53:56 +0100 Subject: [PATCH] added linter which can be run with `npm run lint` --- package.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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" + ] } } -- 2.39.5