Wrong indentation on ternary operator
Problem
I can't reproduce it on http://mib.im/try-prettier/, but if I run: [code block] On my Popper.js, the file `src/tooltip/index.js` at line 59 will have: [code block] Note that the `return` line has wrong indentation.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Wrong indentation on ternary operator
The indentation must always be: [code block] You can't have: [code block] Honestly I'm a bit scared to have to discuss about this with one of the contributors of the most raging formatting library of the moment...
Trust Score
4 verifications
- 1
The indentation must always be:
The indentation must always be:
- 2
Honestly I'm a bit scared to have to discuss about this with one of the contribu
Honestly I'm a bit scared to have to discuss about this with one of the contributors of the most raging formatting library of the moment...
Validation
Resolved in prettier/prettier GitHub issue #1271. Community reactions: 5 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep