From 373ffd2cebc8c8038f949c15d04bc307f2f0830c Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Thu, 11 Jun 2020 22:24:45 -0400 Subject: [PATCH] Run lint in the build --- .travis.yml | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3688e07f..e60d7cf0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,7 @@ jobs: - stage: Test name: Unit Tests script: + - yarn lint - yarn do metrics_server/build - yarn do sentry_webhook/build - yarn do shadowbox/server/build diff --git a/package.json b/package.json index 3b707bb7..61a0ff3b 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,15 @@ }, "scripts": { "clean": "rm -rf src/*/node_modules/ build/ node_modules/ src/server_manager/install_scripts/do_install_script.ts", - "do": "bash ./scripts/do_action.sh" + "do": "bash ./scripts/do_action.sh", + "lint": "tslint 'src/**/*.ts' -e '**/node_modules/**'" }, "workspaces": [ "src/*" ], "husky": { "hooks": { - "pre-commit": "yarn tslint --fix 'src/**/*.ts' -e '**/node_modules/**' && yarn git-clang-format && yarn pretty-quick --staged --pattern '**/*.html'" + "pre-commit": "yarn run lint && yarn git-clang-format && yarn pretty-quick --staged --pattern '**/*.html'" } } }