@inigomarquinez/prettier-config
v2.0.1
Published
@inigomarquinez shareable configuration for Prettier.
Downloads
1
Maintainers
Readme
@inigomarquinez/prettier-config
[!NOTE] @inigomarquinez opinionated shareable configuration for
prettier
.
📖 Table of Contents
📦 Installation
Install this package as a devDependencies
in your project:
# npm
npm install @inigomarquinez/prettier-config --save-dev
# Yarn
yarn add @inigomarquinez/prettier-config --dev
After installing it, a .prettierrc
file will be created automatically in the project's root folder with the following configuration:
"@inigomarquinez/prettier-config"
[!WARNING] 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('@inigomarquinez/prettier-config'), // Add custom options bellow semi: true }
📚 Documentation
Read the Prettier docs for more information. Here you can find specific information about sharing configurations.
📏 Custom options
The library customises the following options. All other options take their default value as defined here.
| Option | Custom value |
| ------ | ------------ |
| arrowParens | 'avoid'
|
| experimentalTernaries | true
|
| jsxSingleQuote | true
|
| singleAttributePerLine | true
|
| singleQuote | true
|
🧩 Contributing
If you are interested in helping contribute, please open an issue or pull request.
📝 Changelog
See CHANGELOG for a human-readable history of changes.
©️ License
Distributed under the MIT License. See LICENSE for more information.