@fenghan/prettier-config

1.0.7 • Public • Published

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 ."
}

Readme

Keywords

Package Sidebar

Install

npm i @fenghan/prettier-config

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

5.01 kB

Total Files

4

Last publish

Collaborators

  • fenghan