@pyk/prettier-config

1.0.1 • Public • Published

@pyk/prettier-config

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

Package Sidebar

Install

npm i @pyk/prettier-config

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.46 kB

Total Files

3

Last publish

Collaborators

  • pyk