@devoxa/prettier-config
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

prettier-config

The shareable configuration for Prettier used in all Devoxa projects

Package Version Build Status

InstallationUsageExtendingContributorsLicense


Installation

yarn add --dev @devoxa/prettier-config prettier typescript

Usage

To enable the rules, add a prettier property in your package.json. See the Prettier configuration docs for more details.

"prettier": "@devoxa/prettier-config"

It is also recommended to add the following scripts to your package.json for easy usage.

"format": "prettier --ignore-path='.gitignore' --list-different --write .",
"format:check": "prettier --ignore-path='.gitignore' --check .",

Additionally, it is recommended to install the VS Code Extension to get in-editor formatting support.

Extending

This configuration is not intended to be changed, but if you have a setup where modification is required, it is possible. To extend a configuration you will need to use a prettier.config.js file that exports an object:

module.exports = {
  ...require('@devoxa/prettier-config'),
  semi: true,
}

Contributors

Thanks goes to these wonderful people (emoji key):


David Reeß

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @devoxa/prettier-config

Weekly Downloads

281

Version

2.0.3

License

MIT

Unpacked Size

6.68 kB

Total Files

15

Last publish

Collaborators

  • queicherius