@sanity/prettier-config
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@sanity/prettier-config

npm stat npm version

npm install --save-dev @sanity/prettier-config prettier

Then add it to your package.json to install it:

   },
+  "prettier": "@sanity/prettier-config",
   "dependencies": {

If you need to add more plugins, or extend the configuration, you'll need to create a .prettierrc.cjs, or prettier.config.cjs, file instead of using the prettier field in package.json:

// .prettierrc.cjs or prettier.config.cjs

const preset = require('@sanity/prettier-config')

module.exports = {
  ...preset,
  plugins: [...preset.plugins, 'prettier-plugin-tailwindcss'],
  experimentalTernaries: true,
}

Package Sidebar

Install

npm i @sanity/prettier-config

Weekly Downloads

4,794

Version

1.0.2

License

MIT

Unpacked Size

8.4 kB

Total Files

9

Last publish

Collaborators

  • armandocerna
  • daniel.malmer
  • jordanl17
  • tambet
  • jtpetty
  • drewsanity
  • refiito
  • sergeisarviro
  • ash
  • indrek.karner
  • cngonzalez-sanity
  • rdunk
  • rneatherway-sanity
  • ricokahler
  • pedro-sanity
  • jonabc
  • kenjonespizza
  • pauloborgesf
  • binoy14
  • simen.svale
  • svirs
  • josh_sanity_io
  • joneidejohnsen
  • nina.andal
  • rankers
  • snorreeb
  • mattcraig
  • vincentquigley
  • stipsan
  • michael-sanity
  • rubioz
  • tonina
  • ritasdias
  • simeonsanity
  • kmelve
  • bjoerge
  • rexxars
  • skogsmaskin
  • robinpyon
  • mariuslundgard
  • sanity-io
  • evenw
  • radhe_sanity
  • rbotten
  • judofyr
  • obliadp
  • dcilke
  • fredcarlsen
  • hermanw
  • sgulseth
  • atombender