https://github.com/simenandre/prettier-config
Small, reusable, opinionated Prettier configuration
https://github.com/simenandre/prettier-config
prettier prettier-config
Last synced: 6 months ago
JSON representation
Small, reusable, opinionated Prettier configuration
- Host: GitHub
- URL: https://github.com/simenandre/prettier-config
- Owner: simenandre
- License: apache-2.0
- Created: 2021-08-07T14:11:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-13T22:22:10.000Z (6 months ago)
- Last Synced: 2025-01-26T11:47:48.997Z (6 months ago)
- Topics: prettier, prettier-config
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @simenandre/prettier
Reusable prettier config.
## Installation
```bash
yarn add --dev @simenandre/prettier
```or
```bash
pnpm add --save-dev @simenandre/prettier
```## Usage
Add a key in your **package.json** file.
```
"prettier": "@simenandre/prettier"
```**OR**
Create a **.prettierrc** , **.prettierrc.yaml** , **.prettierrc.yml** or
**.prettierrc.json** file and export a string.```
"@simenandre/prettier"
```**OR**
Create a **prettier.config.js** or **.prettierrc.js** file and export an object.
```
module.exports = {
...require("@simenandre/prettier"),
tabWidth: 2,
};
```## Thanks
Most of this code is based on https://github.com/devsht/prettier-config.