Skip to content

How to adopt lint without drowning

Start with the recommended preset, fix what it flags, then add rules one at a time; adopting 200 rules at once creates 4,000 warnings nobody reads.

Adopting a linter on an existing codebase

  1. Start with the recommended preset

    Every serious linter ships a preset. Turn it on. Do not customize yet.

  2. Fix what it flags, do not silence

    Silencing a rule with a comment is fine for a specific line, never for a file.

  3. Add one rule at a time

    One rule, one pull request, one discussion. Adoption is a conversation, not a decree.

  4. Fail the build on error, not on warning

    Warnings that do not fail the build get ignored within a week.