New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lukemorales/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lukemorales/prettier-config

## 📦 Install

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 22 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc