@shaizei/prettier-config

0.1.0-beta.12 • Public • Published

@shaizei/prettier-config

This package contains shareable Prettier configuration used by the applications created with @shaizei/cli.

Getting Started

1. Installation

Using Yarn:

  yarn add @shaizei/prettier-config --dev

Using npm:

  npm install @shaizei/prettier-config --save-dev

2. Usage

  • Create a new file and name it as prettier.config.js
  • Just import @shaizei/prettier-config and export it.
module.exports = require('@shaizei/prettier-config');
  • In order to have a .prettierignore file as well, just run the following command from terminal:
  cat ./node_modules/@shaizei/prettier-config/.prettierignore >> .prettierignore

Override Default Config

If you want to override the default configuration, then add the following code in prettier.config.js file:

  const prettierConfig = require('@shaizei/prettier-config');
  module.exports = {
    ...prettierConfig,
    // your config options goes here, e.g. printWidth: 80
  }

Package Sidebar

Install

npm i @shaizei/prettier-config

Weekly Downloads

1

Version

0.1.0-beta.12

License

MIT

Unpacked Size

9.79 kB

Total Files

6

Last publish

Collaborators

  • shahzaibkhalid
  • shaizei