mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 13:58:57 +00:00
Run lint in the build
This commit is contained in:
parent
46e85565aa
commit
373ffd2ceb
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue