You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`pnpm lint:packages` ([pnpm dedupe --check](https://pnpm.io/cli/dedupe)): Checks for unnecessarily duplicated packages in the `pnpm-lock.yml` file
48
-
-`pnpm lint:spelling` ([cspell](https://cspell.org)): Spell checks across all source files
44
+
-`bun run lint` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints JavaScript and TypeScript source files
45
+
-`bun run lint:knip` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports
46
+
-`bun run lint:md` ([Markdownlint](https://github.com/DavidAnson/markdownlint): Checks Markdown source files
47
+
-`bun run lint:packages` ([bun dedupe --check](https://bun.sh/docs/cli/dedupe)): Checks for unnecessarily duplicated packages in the `bun.lockb` file
48
+
-`bun run lint:spelling` ([cspell](https://cspell.org)): Spell checks across all source files
49
49
50
50
Read the individual documentation for each linter to understand how it can be configured and used best.
51
51
52
52
For example, ESLint can be run with `--fix` to auto-fix some lint rule complaints:
53
53
54
54
```shell
55
-
pnpm run lint --fix
55
+
bun run lint --fix
56
56
```
57
57
58
-
Note that you'll likely need to run `pnpm build` before `pnpm lint` so that lint rules which check the file system can pick up on any built files.
58
+
Note that you'll likely need to run `bun run build` before `bun run lint` so that lint rules which check the file system can pick up on any built files.
59
59
60
60
## Testing
61
61
62
62
[Vitest](https://vitest.dev) is used for tests.
63
63
You can run it locally on the command-line:
64
64
65
65
```shell
66
-
pnpm run test
66
+
bun run test
67
67
```
68
68
69
69
Add the `--coverage` flag to compute test coverage and place reports in the `coverage/` directory:
70
70
71
71
```shell
72
-
pnpm run test --coverage
72
+
bun run test --coverage
73
73
```
74
74
75
75
Note that [console-fail-test](https://github.com/JoshuaKGoldberg/console-fail-test) is enabled for all test runs.
@@ -87,11 +87,11 @@ You should be able to see suggestions from [TypeScript](https://typescriptlang.o
87
87
However, it can be useful to run the TypeScript command-line (`tsc`) to type check all files in `src/`:
88
88
89
89
```shell
90
-
pnpm tsc
90
+
bun run tsc
91
91
```
92
92
93
93
Add `--watch` to keep the type checker running in a watch mode that updates the display as you save files:
0 commit comments