A linter rule checks for a particular source-code pattern and reports a warning when the configured condition is met. Useful rules should produce warnings worth addressing; excessive noise can make important problems easier to ignore. section 6.3.1
Configure a rule at the scope where its guidance makes sense:
- Set a rule to 1 or 0 in the rules section of .eslintrc to enable or disable it across the project. section 6.3.1
- Use eslint-disable-line followed by rule names to suppress a rule for one statement, such as allowing debugger during investigation. section 6.3.1
Project-wide and local suppression
In tools/.eslintrc, set "prefer-const": 0 when that warning is not useful for the project. In src/index.ts, write debugger; // eslint-disable-line no-debugger to permit debugging on one statement without disabling the rule everywhere.



