format/configured/node
A formatter is configured
Implements format/configured for node.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | node |
| Scope | each |
| Kind | outcome |
| Source | library v0.8.0 |
| Selected by | fleetlint-recommended@v0.8.0 |
Requirement
A formatter is configured in the package or a parent directory: Prettier (.prettierrc*, prettier.config.* or a prettier key in package.json), Biome with its formatter enabled, or dprint; or one of them runs in a hook, the task runner or CI. Another formatter is added with accept:.
Why
Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.
Fix
Add a Prettier configuration (.prettierrc.json) and the prettier hook, or use Biome.
Agent instruction: Add .prettierrc.json and prettier to devDependencies, run it from the fmt target and a hook; reformat in a separate commit.
A finding that names no file points at .prettierrc.json.
Sources
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://prettier.io/docs/configuration (spec)
- https://fleetlint.org/stacks/#nodejs–typescript
Generated by fleetlint docs from catalog v0.8.0.