prettier-emacs icon indicating copy to clipboard operation
prettier-emacs copied to clipboard

Indentation Problems

Open andrew-oko-odion opened this issue 5 years ago • 2 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>

andrew-oko-odion avatar Sep 03 '18 12:09 andrew-oko-odion

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

nickmccurdy avatar Sep 03 '18 12:09 nickmccurdy

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

No I do not have a config for prettier

andrew-oko-odion avatar Oct 27 '18 07:10 andrew-oko-odion