This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Add options to accept empty objects with option whitespace check-postbrace #4552
Labels
Formatting rule
Relates to a rule which enforces code formatting and likely overlaps with prettier
Resolution: Duplicate
Type: Rule Enhancement
Feature request
Is your feature request that we implement a new rule?
No
Is your feature request related to a problem? Please describe.
I would like to allow the use of
let o = {}
while enforcing a whitespace inlet o = { foo: "bar" }
.Currently in order to have the latter you'll be force to use
let o = { }
.Describe the solution you'd like
I would like to add an option
allow-empty-object
to the rulewhitespace
.Describe alternatives you've considered
Not a lot, I think that should be the job of the linter. I have read your source code and I probably should be able to submit a PR.
Additional context
null
The text was updated successfully, but these errors were encountered: