1.1.0 • Published 4 years ago

@moonbegonia/prettier-config v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@moonbegonia/prettier-config

MoonBegonia's default prettier config.

Installation

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

yarn add @moonbegonia/prettier-config prettier --dev

pnpm add @moonbegonia/prettier-config prettier --save-dev

Usage

You can use this in your package.json:

{
  "name": "my-cool-library",
  "version": "9000.0.1",
  "prettier": "@moonbegonia/prettier-config"
}

You can use any of the supported extensions to export a string, e.g. .prettierrc json:

"@moonbegonia/prettier-config"

This method does not offer a way to extend the configuration to overwrite some properties from the shared configuration. If you need to do that, import the file in a .prettierrc.js file and export the modifications, e.g:

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

See more at prettier documentation.

License

MIT