Lint
Use lint to flag unused variables and unhandled promises first, but do not say a passing lint means the button really works.
Use lint to flag unused variables and unhandled promises first, but do not say a passing lint means the button really works.
11 async function submit(order) {
12 const total = price + tax;
13 await saveOrder(order)
14 return total;
15 }↳Lint locates suspicious source at a file and line without running the full site.
It checks source shapes and conventions: Rules find unused variables, risky patterns, or team-inconsistent code without starting the full application. Results point to a file and line for quick pre-commit correction.
Static passing is not correct running: Lint does not click buttons, wait for networks, or confirm database writes. Put it in CI as an early check, then use tests and acceptance for actual behavior.
Enable and fix lint reports for unused variables and unhandled promises. Put lint in PR checks, but still test the save button afterward: click, wait, success feedback, and failure feedback all need confirmation.