I want to keep my code like this:
<div>
<form action="">
<button type="button" onClick={() => setsearchStr('Random')}>Text</button>
</form>
</div>
But prettier changes it to:
<div>
<form action="">
<button type="button" onClick={() => setsearchStr('Random')}>
Text
</button>
</form>
</div>
How can i achieve this?
Thanks
I already have this config:
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid",
"printWidth": 130,
"bracketSameLine": true
}