mirror of
https://github.com/coder/code-server.git
synced 2026-05-28 17:43:51 +02:00
Format and lint
This commit is contained in:
10
ci/lint.sh
10
ci/lint.sh
@@ -3,8 +3,14 @@
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
eslint --max-warnings=0 --fix $$(git ls-files "*.ts" "*.tsx" "*.js")
|
||||
stylelint --fix $$(git ls-files "*.css")
|
||||
if [[ ${CI-} ]]; then
|
||||
cd "$(dirname "$0")/.."
|
||||
./ci/vscode.sh
|
||||
fi
|
||||
|
||||
eslint --max-warnings=0 --fix $(git ls-files "*.ts" "*.tsx" "*.js")
|
||||
stylelint --fix $(git ls-files "*.css")
|
||||
tsc --noEmit
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user