fleetlint Policy for a fleet of repositories
v0.6
Getting started

format/configured/node

A formatter is configured

Implements format/configured for node.

Severitywarning
Tiers1, 2
Stacksnode
Scopeeach
Kindoutcome
Sourcelibrary v0.3.1
Selected byfleetlint-recommended@v0.3.1

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.

See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#nodejs--typescript


Generated by fleetlint docs from catalog v0.3.1.