Open Bug 1881268 Opened 2 years ago Updated 8 months ago

[meta] Roll-out ESLint rule no-constant-condition to all areas

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned)

References

Details

(Keywords: meta)

In bug 1881266 we are enabling the ESLint rule no-constant-condition. For existing failures, we are marking those as warnings, and so we should work to reduce the list of warnings down, and enable the rule as failing everywhere.

Just something I noticed during a recent review, with a recent (1 year ago) eslint change while (true) is now allowed. This is driven by the new default value for the checkLoops option: "allExceptWhileTrue". If we are fine with it, we can probably trim down the list of excluded files a bit.

Depends on: 1989197
You need to log in before you can comment on or make changes to this bug.