Skip to content

chore(lint): Enable eslint curly rule and auto-fix all violations#115697

Draft
ryan953 wants to merge 1 commit into
masterfrom
ryan953/chore/enable-curly-eslint-rule
Draft

chore(lint): Enable eslint curly rule and auto-fix all violations#115697
ryan953 wants to merge 1 commit into
masterfrom
ryan953/chore/enable-curly-eslint-rule

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented May 16, 2026

Summary

  • Enables the ESLint curly rule at error level, requiring curly braces around all control flow statements (if, else, for, while, do)
  • The rule is added in the plugin/prettier config block so it overrides eslint-config-prettier's disabling of the rule (it's a "special rule" that's safe to use alongside formatters)
  • Auto-fixed all 124 files with existing violations and reformatted with oxfmt

Test plan

  • Verified zero remaining curly violations via eslint across static/app/, static/gsApp/, static/gsAdmin/, tests/js/, and static/eslint/
  • All pre-commit hooks pass (eslint, stylelint, format)
  • CI passes

Require curly braces around all control flow statements (if, else, for,
while, do). The rule is added after eslint-config-prettier so it overrides
prettier's disabling of the rule. All 124 files with violations have been
auto-fixed and reformatted.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 16, 2026
@ryan953 ryan953 changed the title chore(lint): Enable eslint curly rule and fix all violations chore(lint): Enable eslint curly rule and auto-fix all violations May 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.53%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant