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

📎 Implement useObjectShorthand #4816

Open
arendjr opened this issue Dec 31, 2024 · 6 comments
Open

📎 Implement useObjectShorthand #4816

arendjr opened this issue Dec 31, 2024 · 6 comments
Assignees
Labels
A-Linter Area: linter good first issue Good for newcomers L-JavaScript Language: JavaScript and super languages S-Help-wanted Status: you're familiar with the code base and want to help the project

Comments

@arendjr
Copy link
Contributor

arendjr commented Dec 31, 2024

Description

Port the object-shorthand rule from eslint.

@arendjr arendjr added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Dec 31, 2024
@ematipico ematipico added good first issue Good for newcomers S-Help-wanted Status: you're familiar with the code base and want to help the project labels Dec 31, 2024
@scarf005
Copy link

scarf005 commented Jan 1, 2025

Hi, I'm interested on opening a PR.

@ematipico
Copy link
Member

@scarf005 I assigned the issue to you

@dy0gu
Copy link

dy0gu commented Jan 18, 2025

Hi there @scarf005, sorry to bother but do you have any updates on this? I also accept pointers on how to get started doing it myself if the implementation is not too complex!

object-shorthand and no-floating-promisses are 2 of the rules I miss the most in the midst of all the awesomeness Biome provides.

Since I'm not getting the latter (blocked by #3187), I'd love to help speed this one up just for me personally! 😁

@dyc3
Copy link
Contributor

dyc3 commented Jan 19, 2025

Since we haven't heard from @scarf005 in a while, I'll go ahead and reassign this to @dy0gu.

@dyc3 dyc3 assigned dy0gu and unassigned scarf005 Jan 19, 2025
@dy0gu
Copy link

dy0gu commented Jan 20, 2025

Hi again, I was wondering if this has to be an exact port of the eslint rule? One team I work with prefers using the old syntax everywhere, instead of the newer ECMAScript 6 form.

Do you think it would make sense to create a useConsistentObjectShorthand or useConsistentObjectDefinition instead? With a syntax option to pick between the newer ECMAScript and the old way.

@ematipico
Copy link
Member

Probably better to use a "neutral" name (second suggestion). You could follow the same naming convention of https://biomejs.dev/linter/rules/use-consistent-array-type/#options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter good first issue Good for newcomers L-JavaScript Language: JavaScript and super languages S-Help-wanted Status: you're familiar with the code base and want to help the project
Projects
None yet
Development

No branches or pull requests

5 participants