From 8318f861ff349f669f44b846f65376c870330259 Mon Sep 17 00:00:00 2001 From: Michael Solati Date: Mon, 6 Aug 2018 19:00:40 -0700 Subject: [PATCH] build: add lint to travis --- .travis.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7caf412..3323e95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ sudo: required install: - npm install script: + - npm run lint - npm run test after_success: - npm run coverage diff --git a/package.json b/package.json index 320751c..1041933 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "build": "rm -rf ./dist && rollup -c", "coverage": "nyc report --reporter=text-lcov | coveralls", + "lint": "tslint --project ./tslint.json 'src/**/*.ts'", "test": "nyc --reporter=html --reporter=text mocha", "release:major": "changelog -M && git add . && git commit -m 'chore(release): major version release' && npm version major", "release:minor": "changelog -m && git add . && git commit -m 'chore(release): minor version release' && npm version minor",