Во, попробуй так: yarn format --tab-width 2