Demartini’s shareable configuration for
Prettier
.
Install this config
as a devDependencies
:
# npm
npm install @demartini/prettier-config --save-dev
# Yarn
yarn add @demartini/prettier-config --dev
After installing it, a .prettierrc.json
file will be created automatically in the project's root folder with the following configuration:
"@demartini/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('@demartini/prettier-config'), // Add custom options bellow: semi: true }
Read the Prettier docs for more information.
If you are interested in helping contribute, please take a look at our contribution guidelines and open an issue or pull request.
See CHANGELOG for a human-readable history of changes.
Distributed under the MIT License. See LICENSE for more information.