Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/decampsrenan/prettier-config
Personal prettier config
https://github.com/decampsrenan/prettier-config
Last synced: about 14 hours ago
JSON representation
Personal prettier config
- Host: GitHub
- URL: https://github.com/decampsrenan/prettier-config
- Owner: DecampsRenan
- Created: 2024-01-11T13:38:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-28T16:50:00.000Z (8 months ago)
- Last Synced: 2024-04-16T10:35:50.312Z (7 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Personal prettier-config
I use this config in all my projects. No need to copy/paste anymore 😄
### Install
```sh
pnpm i -D @decampsrenan/prettier-config
``````sh
npm i -D @decampsrenan/prettier-config
``````sh
yarn add -D @decampsrenan/prettier-config
```### Usage
```json
// package.json
{
"name": "...",
"prettier": "@decampsrenan/prettier-config"
}
```Or if you need more control on the settings:
```js
// .prettierrc.mjs
import config from "@decampsrenan/prettier-config"export default {
...config
// Override with your custom needs here
}
```Then run the following commands to check or update files if needed:
```sh
npx prettier -c ./ # Check if there is some files to update
npx prettier -w ./ # Update files
```