@crashmax/prettier-config

5.0.2 • Public • Published

@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}\""
  }
}

Related

Readme

Keywords

none

Package Sidebar

Install

npm i @crashmax/prettier-config

Weekly Downloads

37

Version

5.0.2

License

MIT

Unpacked Size

4.8 kB

Total Files

5

Last publish

Collaborators

  • crashmax