1.0.7 • Published 3 years ago

@fenghan/prettier-config v1.0.7

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

Prettier Config

npm version

Prettier configuration for my projects.

Installation

This package is distributed via npm. It requires prettier.

If using npm 5+, use this shortcut:

npx install-peerdeps -D @fenghan/prettier-config

Or install each package by yourself:

npm install -D @fenghan/prettier-config prettier
# or
yarn add -D @fenghan/prettier-config prettier

Usage

You can just reference it in your package.json file:

{
  "prettier": "@fenghan/prettier-config"
}

If you need to overwrite some properties from this configuration, import this in your .prettierrc.js file and export the modifications:

module.exports = {
  ...require('@fenghan/prettier-config'),
  // ...
}

Then you can setup the Prettier CLI in your package.json file:

{
  "format": "prettier --write ."
}
1.0.7

3 years ago

1.0.5

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.1.0

3 years ago