Run lint in the build

This commit is contained in:
Vinicius Fortuna 2020-06-11 22:24:45 -04:00
parent 46e85565aa
commit 373ffd2ceb
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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'"
}
}
}