Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up"Infix operators must be spaced" not resolved correctly by `standard --format` #227
Comments
This comment has been minimized.
This comment has been minimized.
|
Tested with |
This comment has been minimized.
This comment has been minimized.
|
This is actually a I just fixed it here: maxogden/standard-format@f52b384 and published standard-format 1.6.3. I also added your tests above and they are passing. If you reinstall |
This comment has been minimized.
This comment has been minimized.
|
I've done another test and found out that var gt = 'a'
var x = []
gt === '>' ? x[1] : 2is always changed to var gt = 'a'
var x = []
gt === '>' ? x[1]: 2Wow, that was fast. I'll try! |
This comment has been minimized.
This comment has been minimized.
|
Verified, many thanks |
nknapp
closed this
Aug 12, 2015
lock
bot
locked as resolved and limited conversation to collaborators
May 11, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
nknapp commentedAug 12, 2015
I have a file
test-infix.jscontaining the fileWhen I run
standard --format test-infix.js, the errortest-infix.js:1:20: Infix operators must be spacedis displayed and the file is modified as followsThe same error still occurs because of the missing space between
2and?and between3and:.The correct formatting would be (I guess)
but
standarddoes not change the file that way