WSWhat Scene?

Learn · Developer tools

What is a lint rule?

A lint rule is one named check a linter runs, like no-unused-vars or rules-of-hooks. Each has a name you can search, a level (off, warn, or error), and often options. Your project's lint config is really just the list of which rules are on and how loudly they complain.

The level does most of the work. A warning that never blocks anything gets ignored quickly, and then it is noise that trains everyone to skim past real output. If a rule is worth keeping on, it is usually worth failing the build for.

Most warnings arrive inherited, from a shared config rather than a decision. That is the case worth auditing: run your linter and count them, then either promote them so they block or switch them off. Our own config inherits 15 warning-level rules, none of which currently fire, so we made the build fail on any warning at all rather than leave a category of finding that nobody has to act on.

Turn rules on one at a time, with a reason you could explain to whoever hits it next. A config copied from somewhere and understood by nobody gets switched off the first time it is inconvenient, which is worse than never having added it.

Updated August 2026

Want this built, not just explained?