c-prettier
v1.12.1
Published
C-prettier is Prettier, a bit less opinionated.
Downloads
2
Readme
C-Prettier
This is Prettier, with an additional option jsxMaxPropsPerLine
which objective is to allow users to specify the maximum number of props they want on a single line in a JSX element.
eg.
<AmazingElement width={100} height={100} />
with option jsxMaxPropsPerLine
set to 1
:
<AmazingElement
width={100}
height={100}
/>
To use the option, add it to your .prettierrc
(or equivalent) config file.
This is just a very simple fork aiming to be a drop-in replacmeent, so just replace prettier
by c-prettier
in your package.json
, npm install
, and you're good to go.
You should not have Prettier and C-Prettier installed together, as something will probably break somewhere, since the bin
file is still named prettier
to ensure all integrations (plugins for code editors for example) work.