feat(eslint-plugin): add `consistent-indexed-object-style` rule #2401
Thanks for the PR, @remcohaszing!
typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.
The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.
@@ Coverage Diff @@ ## master #2401 +/- ## ========================================== - Coverage 92.83% 92.82% -0.02% ========================================== Files 291 293 +2 Lines 9562 9612 +50 Branches 2678 2691 +13 ========================================== + Hits 8877 8922 +45 - Misses 324 326 +2 - Partials 361 364 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
…syntax The newly handled syntax isn’t valid TypeScript syntax, but the TypeScript parser does parse it and it’s passed to ESLint.
…tions `always` has been renamed to `record`. `never` has been renamed to `indexed-signature`.
I do think the use of the word record in that proposal is confusing as it has a different meaning in TypeScript. However, I don’t think this causes ambiguity for this rule specifically. Also changing the default now that this has been released, would be a breaking change.