1.1.1 • Published 20 days ago

@lukemorales/prettier-config v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
20 days ago

Prettier config

📦 Install

This Prettier config is available as a package on NPM, install with your favorite package manager:

npm install @lukemorales/prettier-config

⚡ Quick start

Add the following code to your package.json:

"prettier": "@lukemorales/prettier-config"

You can alternatively create a .prettierrc file in the root of your project's directory. Your .prettierrc file should look like this:

"@lukemorales/prettier-config"

Add scripts to your package.json to format and fix:

"scripts": {
  "format": "prettier --check .",
  "format:fix": "prettier --write ."
},

📝 Formatting configurations

This package exposes different formatting configurations:

Default

Contains opinionated formatting rules.

"prettier": "@lukemorales/prettier-config"

TailwindCSS

Extends the default configuration and adds the tailwindcss plugin.

"prettier": "@lukemorales/prettier-config/with-tailwind"

If you're using this configuration, make sure to install the prettier-plugin-tailwindcss peerDependency

1.1.1

20 days ago

1.1.0

4 months ago

1.0.0

10 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.1

11 months ago