Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenandre/prettier-config
Small, reusable, opinionated Prettier configuration
https://github.com/simenandre/prettier-config
prettier prettier-config
Last synced: about 1 month 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-29T11:25:26.000Z (about 1 month ago)
- Last Synced: 2024-12-05T08:44:44.890Z (about 1 month 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.