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

eslint rule for object property shorthand/object-shorthand #8009

Closed
tofumatt opened this issue Jul 17, 2018 · 2 comments
Closed

eslint rule for object property shorthand/object-shorthand #8009

tofumatt opened this issue Jul 17, 2018 · 2 comments
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Dev Ready for, and needs developer efforts [Tool] ESLint plugin /packages/eslint-plugin [Type] Code Quality Issues or PRs that relate to code quality

Comments

@tofumatt
Copy link
Member

Looks like we don't have an eslint rule around object-shorthand, as discovered in #7941 (comment). We do use it in the code in some places, I like it, so I'd advocate we use it anytime we can.

We should just make a rule around it. I'd prefer we enforce using it whenever possible ("always"), but I mainly don't like it being unclear.

@tofumatt tofumatt added the [Type] Code Quality Issues or PRs that relate to code quality label Jul 17, 2018
@youknowriad youknowriad added [Tool] ESLint plugin /packages/eslint-plugin Good First Issue An issue that's suitable for someone looking to contribute for the first time labels Apr 19, 2019
@gziolo gziolo added the Needs Dev Ready for, and needs developer efforts label Oct 21, 2019
@huntlisa
Copy link

Picking this up as my first ever open source issue. 🤞

@gziolo
Copy link
Member

gziolo commented Oct 28, 2019

As commented in #18123 (comment)

It looks like object-shorthand is already set up in the WordPress plugin for ESLint:

'object-shorthand': 'error',

I was surprised seeing no errors reported and that's why I double-checked. I don't think we should override it for the Gutenberg specific config. We can simply close the parent issue. Sorry about that. Thank you for helping with closing the open issue though 🙇

@GeckoLisa - thanks for your help!

@gziolo gziolo closed this as completed Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Dev Ready for, and needs developer efforts [Tool] ESLint plugin /packages/eslint-plugin [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

No branches or pull requests

4 participants