Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebaiturravaldes/prettier-config
A Shared Prettier Config
https://github.com/sebaiturravaldes/prettier-config
prettier prettier-config
Last synced: about 2 months ago
JSON representation
A Shared Prettier Config
- Host: GitHub
- URL: https://github.com/sebaiturravaldes/prettier-config
- Owner: sebaiturravaldes
- Created: 2021-11-22T00:07:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T11:37:06.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T15:19:45.983Z (about 2 months ago)
- Topics: prettier, prettier-config
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@siturra/prettier-config
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Personal Prettier config
> My personal [Prettier](https://prettier.io) config.
## Usage
### Install
using npm
```cli
npm install --save-dev @siturra/prettier-config
```or yarn
```cli
yarn add --dev @siturra/prettier-config
```### Add prettier
add in package.json
```json
"prettier": "@siturra/prettier-config"
```OR
Create a `.prettierrc` , `.prettierrc.yaml` , `.prettierrc.yml` or `.prettierrc.json` file and export a string.
```json
"@siturra/prettier-config"
```OR
> 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 `prettier.config.js` or `.prettierrc.js` file and export the modifications, e.g:
>
> ```js
> module.exports = {
> ...require('@siturra/prettier-config'),
> semi: false
> }
> ```## References
- https://prettier.io/docs/en/configuration.html
- Prettier share example https://github.com/azz/prettier-config
- https://www.codereadability.com/automated-code-formatting-with-prettier
- https://medium.com/@sebastianiturra/reutiliza-prettier-2d9747b967fd