@simenandre/prettier

5.0.0 • Public • Published

@simenandre/prettier

Reusable prettier config.

Installation

yarn add --dev @simenandre/prettier

or

pnpm add --save-dev @simenandre/prettier

Usage

Add a key in your package.json file.

"prettier": "@simenandre/prettier"

OR

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

"@simenandre/prettier"

OR

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

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

Thanks

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

Readme

Keywords

none

Package Sidebar

Install

npm i @simenandre/prettier

Weekly Downloads

2,014

Version

5.0.0

License

Apache-2.0

Unpacked Size

13.8 kB

Total Files

7

Last publish

Collaborators

  • simenandre