Socket
Book a DemoInstallSign in
Socket

@crashmax/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crashmax/prettier-config

prettier-config

5.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@crashmax/prettier-config

Here is my personal Prettier config.

Install

npm install @crashmax/prettier-config -D
yarn add @crashmax/prettier-config -D
pnpm add @crashmax/prettier-config -D

Usage

// .prettierrc.cjs
module.exports = require('@crashmax/prettier-config')

Copy the ignore file to your project folder

If you want to extend the ignore file, run the following command in the root of your project folder:

# unix
cp node_modules/@crashmax/prettier-config/.prettierignore .prettierignore

# windows
copy node_modules/@crashmax/prettier-config/.prettierignore .prettierignore

It will copy the .prettierignore from @crashmax/prettier-config to your project root folder.

Scripts

Some commonly used scripts in package.json.

{
  "scripts": {
    "format": "prettier --write \"**/*.{js,ts,tsx,json}\""
  }
}

FAQs

Package last updated on 05 Feb 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.