From c97532bc413c476a3fbe2fb4a4d9e38e205beb6f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Tue, 24 Sep 2019 20:43:15 +0200 Subject: [PATCH] Add code linting as a build step (closes #27) --- .travis.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index b6f87d7..8c81fd9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ install: script: - npm test + - npm run lint after_script: - npm run codecov diff --git a/package.json b/package.json index 0a378d5..d2b95fe 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "scripts": { "build": "rollup -c rollup.config.js", "codecov": "codecov", + "lint": "tslint --project .", "test": "jest" }, "engines": {