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

Conflicting formatting options #489

Open
oliversalzburg opened this issue Jun 15, 2017 · 0 comments
Open

Conflicting formatting options #489

oliversalzburg opened this issue Jun 15, 2017 · 0 comments

Comments

@oliversalzburg
Copy link

So I have this function:

const operation = () => ( {
	foo : "1",
	somethingLong : 2
} );

This is exactly how I want it formatted. But with our current esformatter rules, we get this:

const operation = () => ( {
	foo : "1",
	somethingLong : 2
});

So I figured I should set ObjectExpressionClosingBrace to 1, right? But now every statement where I assign an object hash, gets a trailing whitespace:

operation.fun = {
	call : operation
} ;

So I either get one error or another. And I don't see a rule to remove whitespace around the semicolon either.

I'm not sure if this is a bug or just a request for help, but I don't know what's going on :D

Rules: rules.esformatter.txt

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

No branches or pull requests

1 participant