prettier / prettier-emacs

Minor mode to format JS code on file save

Home Page:http://jlongster.com/A-Prettier-Formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indentation Problems

andrew-oko-odion opened this issue · comments

when I save, it sets my indentaion to 2 instead of 4

<Table.Row> <Table.Cell key={item.id} collapsing> {" "} <Icon name={"user"} />{" "} </Table.Cell> <Table.Cell> {item.name} </Table.Cell> <Table.Cell collapsing selectable> <Input placeholder="1" type="number" min="0" max="40" name={item.name.split(" ").join("")} onChange={e => this.setState({ [e.target.name]: e.target.value })} value={this.state.value[item.name.split(" ").join("")]} /> </Table.Cell> </Table.Row>

Prettier defaults to 2 space indents. Do you have a config?

Prettier defaults to 2 space indents. Do you have a config?

No I do not have a config for prettier