Invoke linter, formatter and TypeScript checker with
# in /ui directory
npm run lint
This will invoke tsc --noEmit && prettier --check . && eslint . --ext .ts,.tsx
tsc --noEmit: use TypeScript compiler to compile your code but do not output any compiled JavaScript codes since we only need the compiler to check typing for us.
prettier --check .: use Prettier to check our code format
eslint . --ext .ts,.tsx: Use ESLint to lint *.ts and *.tsx files
Add the following:
Invoke linter, formatter and TypeScript checker with
This will invoke
tsc --noEmit && prettier --check . && eslint . --ext .ts,.tsx
tsc --noEmit
: use TypeScript compiler to compile your code but do not output any compiled JavaScript codes since we only need the compiler to check typing for us.prettier --check .
: use Prettier to check our code formateslint . --ext .ts,.tsx
: Use ESLint to lint*.ts
and*.tsx
files