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
Copy file name to clipboardExpand all lines: contributingGuides/LINTING.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,17 @@ npm run lint-changed
14
14
# Lint specific files or directories:
15
15
npm run lint -- src/components/Foo/index.tsx src/libs/bar.ts
16
16
17
+
# Include grandfathered seatbelt warnings in the output:
18
+
npm run lint -- --show-warnings
19
+
17
20
# Continuously re-lint changed files as you edit:
18
21
npm run lint-watch
19
22
```
20
23
21
24
Prefer `npm run lint` (or `lint-changed` / `lint -- <files>`) over raw `npx eslint` invocations. Those wrappers increase the memory allocation to prevent OOM errors, and also include caching and concurrency flags for faster linting.
22
25
26
+
By default the wrapper passes `--quiet` to ESLint so only blocking errors are printed — seatbelt-grandfathered violations (which CI does not fail on) are suppressed from the output but still evaluated against the baseline. Pass `--show-warnings` when you want to see them too, e.g. when paying down baselined errors.
27
+
23
28
## eslint-seatbelt
24
29
We use [eslint-seatbelt](https://github.com/justjake/eslint-seatbelt) to manage known lint errors.
0 commit comments