cloudflare/cloudflare-typescript
Publicmirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable
scripts/lint
24lines · modecode
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | cd "$(dirname "$0")/.." |
| 6 | |
| 7 | echo "==> Running prettier --check" |
| 8 | ./node_modules/.bin/prettier --check . |
| 9 | |
| 10 | echo "==> Running eslint" |
| 11 | ./node_modules/.bin/eslint . |
| 12 | |
| 13 | echo "==> Building" |
| 14 | ./scripts/build |
| 15 | |
| 16 | echo "==> Checking types" |
| 17 | ./node_modules/typescript/bin/tsc |
| 18 | |
| 19 | echo "==> Running Are The Types Wrong?" |
| 20 | ./node_modules/.bin/attw --pack dist -f json >.attw.json || true |
| 21 | node scripts/utils/attw-report.cjs |
| 22 | |
| 23 | echo "==> Running publint" |
| 24 | ./node_modules/.bin/publint dist |
| 25 | |