1.0.0 • Published 1 year ago

@reverse-hr/prettier-config v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

← Reverse's Front-End Configs

Prettier

# npm
npm install --save-dev @reverse-hr/prettier-config

# yarn
yarn add --dev @reverse-hr/prettier-config

Reference it in your package.json:

{
  "name": "my-cool-library",
  "version": "0.0.1",
+ "prettier": "@reverse-hr/prettier-config"
}

Note: 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('@reverse-hr/prettier-config'),
  semi: false
};