1.0.1 • Published 2 years ago

@pyk/prettier-config v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

pyk's personal Prettier configuration.

Installation

Use the following command to install @pyk/prettier-config:

# npm
npm install --save-dev --save-exact prettier @pyk/prettier-config@latest

# pnpm
pnpm add --save-dev --save-exact prettier @pyk/prettier-config@latest

Usage

Add the following fields in your package.json:

{
    "scripts": {
        "prettier:check": "prettier --check ."
        "prettier:write": "prettier --write ."
    },
    "prettier": "@pyk/prettier-config"
}

Note You can ignore files by adding it to .prettierignore.

Then you can use pnpm prettier:check or npm run prettier:check to check the file formatting.

Development

Clone the repo:

git clone git@github.com:pyk/prettier-config.git
cd prettier-config/

Install the dependencies:

pnpm install

Publish the package:

pnpm publish

Resources