inline functions inside JSX formatted incorrectly.
alinz opened this issue · comments
Ali Najafizadeh commented
const Foobar = (props) => {
return (
<button onClick={() => console.log('click')}>
</button>
)
}
transforms into
const Foobar = (props) => {
return (
<button onClick={;() => console.log('click')}>
</button>
)
}
I undrestand that having ;
before function makes it safe when it minfies, but in this case, we don't need it.
Miller Medeiros commented
just released esformatter-semicolon-first@1.2.0
with the fix!
Feross Aboukhadijeh commented
Nice, closing this now.