2.0.2 • Published 1 year ago

@cobraz/prettier v2.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@cobraz/prettier

Reusable prettier config

Installation

npm i -D @cobraz/prettier

or

yarn add --dev @cobraz/prettier

Usage

Add a key in your package.json file.

"prettier": "@cobraz/prettier"

OR

Create a .prettierrc , .prettierrc.yaml , .prettierrc.yml or .prettierrc.json file and export a string.

"@cobraz/prettier"

OR

Create a prettier.config.js or .prettierrc.js file and export an object.

module.exports = {
  ...require("@cobraz/prettier"),
  tabWidth: 2,
};

Thanks

Most of this code is based on https://github.com/devsht/prettier-config.