Skip to content

C(ustom) Prettier. Master will be rebased frequently to keep up to date with Prettier.

License

Notifications You must be signed in to change notification settings

codeheroics/c-prettier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}
/>

See Prettier Issue #3101

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.

About

C(ustom) Prettier. Master will be rebased frequently to keep up to date with Prettier.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 86.6%
  • CSS 8.1%
  • TypeScript 4.5%
  • Other 0.8%