A very simple indentation package to use in Atom editor, it selects all your code to make the whole file pretty for you without losing your cursor position, try it with shift-alt-f
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.