Pisyukaev / prettier-config

✒ Here is my personal Prettier config.

Home Page:https://npm.im/@pisyukaev/prettier-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@pisyukaev/prettier-config

Here is my personal Prettier config.

Install

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

Usage

// .prettierrc.cjs
module.exports = require('@pisyukaev/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/@pisyukaev/prettier-config/.prettierignore .prettierignore

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

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

Scripts

Some commonly used scripts in package.json.

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

Related

About

✒ Here is my personal Prettier config.

https://npm.im/@pisyukaev/prettier-config

License:MIT License


Languages

Language:JavaScript 100.0%