Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(js): Disable @typescript-eslint/consistent-indexed-object-style, for real this time #17607

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

SyntaxColoring
Copy link
Contributor

@SyntaxColoring SyntaxColoring commented Feb 27, 2025

Overview

#17557 did not quite do the trick, because in addition to the top-level rules config, we also need to update overrides.

Sorry—I swear I tested it before merging and it seemed like it was working! 🤦

Test Plan and Hands on Testing

  • Run make lint-js before and after this PR, grep for consistent, and make sure the fix actually works this time.

Review requests

My understanding of overrides is that you can narrow them down to specific sets of files. But these overrides are written to apply to every .ts and .tsx file, so...what's the point? Anyone know why we wouldn't just define these in the top-level rules?

Risk assessment

No risk.

@SyntaxColoring SyntaxColoring requested a review from a team as a code owner February 27, 2025 18:42
@SyntaxColoring SyntaxColoring requested review from TamarZanzouri and removed request for a team February 27, 2025 18:42
Copy link
Contributor

@TamarZanzouri TamarZanzouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me!

@koji
Copy link
Contributor

koji commented Feb 27, 2025

@SyntaxColoring
I think Shlok would have an answer to your question.

why we wouldn't just define these in the top-level rules?

I guess it might be the result of the gradual TypeScript migration and app&ui folks didn't update eslint config entirely.
we just updated .eslintrc.js when our pr required the update like typescript update, vite migration etc.

@SyntaxColoring SyntaxColoring merged commit 47a5536 into edge Mar 3, 2025
36 checks passed
@SyntaxColoring SyntaxColoring deleted the inconsistent-indexed-object-style-for-real branch March 3, 2025 15:22
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.

3 participants