Skip to content

Commit

Permalink
document default build task
Browse files Browse the repository at this point in the history
  • Loading branch information
nbogie committed Aug 13, 2023
1 parent a53a248 commit 31a9b03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ It will also ask your browser to open a tab to `http://localhost:3000/`

Any type-check and linting errors will appear in the browser and in the terminal output as you browse.

## Getting type-check and lint errors into vscode's problem list

Run the default build task in vscode using ctrl-shift-B (or mac: Cmd-shift-B)
This will run first type-checking and if that passes will then run eslint.
VSCode's problems list will be populated with errors from the first of those tasks to fail.

This is configured in .vscode/tasks.json

## Relaxing complains from ESLint

If you find lint is too strict, you can edit the rules section of [.eslintrc.cjs](.eslintrc.cjs).
Expand Down Expand Up @@ -59,6 +67,7 @@ See [package.json](package.json) for other scripts.
- vitest (jest-equivalent) and
- react-testing-library
- CI with GitHub Actions
- vscode default build task configured (in tasks.json) to type-check and lint to problems list
- vscode debugger launch config
- Vite
- Type-checking and linting errors presented into the browser (vite-plugin-checker)
Expand Down

0 comments on commit 31a9b03

Please sign in to comment.