From 56e150027b9593b1fdfc0b00faf4427bb9921c74 Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Fri, 7 Sep 2018 11:47:47 +0200 Subject: [PATCH] Added lint --- .travis.yml | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2197832..e34b139 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ language: node_js node_js: - "node" + +script: + - npm run lint + - npm test \ No newline at end of file diff --git a/package.json b/package.json index f29086c..362c2ed 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "lib/index.js", "scripts": { "test": "./node_modules/.bin/mocha --require @babel/register", + "lint": "./node_modules/.bin/eslint ./src/*.js --color", "build:dev": "./node_modules/.bin/webpack -d --progress --profile --colors", "build:prod": "NODE_ENV='production' ./node_modules/.bin/webpack -p --progress --profile --colors", "babel": "npx babel src --out-dir lib && cp src/index.d.ts lib/ && echo \">WARNING: This \\`lib\\` folder is generated with \\`npm run babel\\` and should not be modified!\" > lib/README.md "