Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
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

Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
41
115.79%
Maintainers
1
Weekly downloads
 
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

Overwrite some properties from the shared configuration

// .prettierrc.cjs
module.exports = {
  ...require('@crashmax/prettier-config'),
  semi: false
}

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 --ignore-unknown **",
  }
}

FAQs

Package last updated on 23 Feb 2023

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