Skip to content

feat(linter): no constant condition#271

Merged
Boshen merged 6 commits intooxc-project:mainfrom
mysteryven:feat/eslint-no-constant-condition
Apr 9, 2023
Merged

feat(linter): no constant condition#271
Boshen merged 6 commits intooxc-project:mainfrom
mysteryven:feat/eslint-no-constant-condition

Conversation

@mysteryven
Copy link
Contributor

feat: #258

@mysteryven mysteryven closed this Apr 9, 2023
@mysteryven mysteryven reopened this Apr 9, 2023
@mysteryven mysteryven marked this pull request as ready for review April 9, 2023 03:23
@Boshen Boshen merged commit b51c2df into oxc-project:main Apr 9, 2023
@Boshen
Copy link
Member

Boshen commented Apr 9, 2023

Thank you! We'll implement the rest when we have CFG.

camc314 pushed a commit that referenced this pull request May 13, 2025
…no_constant_condition` (#10949)

Followup to #271

- implemented configuration correctly (supports boolean or choosing one
of three enum variants)
- implemented checking while, do-while and for loops
- re-imported tests from eslint and re-ordered them to reduce git diff
- updated rule docs to recommended format
- added explanation of new configuration option to rule docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants