Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Support eslint quote-props rule #1260

Closed
danvk opened this issue May 18, 2016 · 1 comment
Closed

Support eslint quote-props rule #1260

danvk opened this issue May 18, 2016 · 1 comment

Comments

@danvk
Copy link
Contributor

danvk commented May 18, 2016

I'd like a rule equivalent to eslint's quote-props, so that I can enforce that object keys are quoted only when necessary.

i.e. I'd like a setting to make this illegal:

const o = { 'name': 123 };

in favor of:

const o = { name: 123 };
@adidahiya
Copy link
Contributor

sounds like a good rule to me. open to PRs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants