Pick your Prettier Config
// arrowParens
const foo = bar => console.log(bar);
// bracketSpacing
function baz({ foo }) {
console.log({ foo });
}
// jsxBracketSameLine
// jsxSingleQuote
function MyComponent() {
return (
<Foo bar="watch" baz="the" quux="quotemarks">
<div> hi</div>
</Foo>
);
}
// singleQuote
console.log("do", "you", "want", "singleQuote?");
// semi
console.log("no semi for life!!1!!");
This is just a selection of the config options. For advanced options refer to the Prettier docs
Put this in your .prettierrc
:
{}