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
Add quote-props to special rules #150
Comments
Hi! Am I understanding this right – is |
@lydell Yes. |
I opened a pull request to let Prettier quote/unquote numbers just like ESLint: prettier/prettier#8508 When that’s merged, the only way I can think of to use ESLint’s |
I would prefer Prettier to be more opinionated and use Prettier's defaults, and just disable ESLint's rule. |
Looks like this issue is no longer valid since Prettier 2.1 now quotes/unquotes number keys. |
The
quote-props
rule has an additional numbers option that can be enabled and still not conflict with Prettier, since Prettier preservers the original quotes for numbers (playground demo).So one can use the following configuration in addition to Prettier:
"quote-props": ["error", "as-needed", { "numbers": true }]
The text was updated successfully, but these errors were encountered: