Closed chriswatrous closed 6 years ago
I only attempt to autoindent JSX, and only if the autoIndentJSX flag is on. The above doesn't look as though it is inside a JSX block? If it isn't a JSX block then I won't touch it and all auto indentation is handled by Atom or other third party programs. Atom doesn't do autoindentation of ternaries it just aligns the current line with the previous line.
Ok. Thanks.
I would suggest using https://prettier.io/ The Atom module works well.
I'm seeing strange indentation of conditionals split into multiple lines.
config.cson
It's the same if I put the
?
and:
at the beginning of the line.If I put parenthesis around the whole expression: