cloudflare/cloudflare-typescript

Public

mirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
13dcd52c162fb932e31a21c6892871468b91c129

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/lint

24lines · modecode

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