0.4.0 • Published 9 months ago

@hiddenraven/prettier-config v0.4.0

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

Installation

Install @hiddenraven/prettier-config

pnpm add -D prettier @hiddenraven/prettier-config

Then add the config to your prettier.config.mjs:

prettier.config.mjs

import config from '@hiddenraven/prettier-config'

export default {
  ...config
  // Overrides
  // ...
}

If you project uses TailwindCSS

prettier.config.mjs

import configWithTailwind from '@hiddenraven/prettier-config/with-tailwind'

export default {
  ...configWithTailwind,
  // When using Tailwind CSS v4 you must specify your CSS file entry point, which includes your theme, custom utilities, and other Tailwind configuration options. To do this, use the tailwindStylesheet option in your Prettier configuration.
  // Note that paths are resolved relative to the Prettier configuration file.
  tailwindStylesheet: './src/app.css'

  // If you still have a Tailwind JS config add the path to it.
   "tailwindConfig": "./tailwind.config.js"
}
0.3.0

9 months ago

0.4.0

9 months ago

0.2.5

1 year ago

0.2.1

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.4

1 year ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago