@warungpintar/prettier-config

0.2.0 • Public • Published

@warungpintar/prettier-config

Base Prettier config used at Warung Pintar.

This package is part of the warung-config project. Please read the main README file here.

Installation

Install Prettier and warung-config-prettier into your project.

# npm
npm install --save-dev prettier @warungpintar/prettier-config

# yarn
yarn add --dev prettier @warungpintar/prettier-config

Then, in your package.json, add the following key.

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

If you would like to extend/override the Prettier config provided, you will have to add the config in a .prettierrc.js file, then extend with your own configs. For example:

module.exports = {
  ...require('@warungpintar/prettier-config'),
  semi: false,
};

Installing canary versions

To try out a bleeding-edge version of our configs, you can add the @canary tag in your install script:

# npm
npm install --save-dev @warungpintar/prettier-config@canary

# yarn
yarn add --dev @warungpintar/prettier-config@canary

Note: The canary version is more unstable and includes config changes that might be breaking. Please take note when including it in your projects.

Readme

Keywords

none

Package Sidebar

Install

npm i @warungpintar/prettier-config

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • morzanu
  • ahmadp
  • srewarpin
  • resir014
  • sofianhw