https://github.com/devsht/prettier-config
Reusable Prettier config
https://github.com/devsht/prettier-config
config configuration prettier react reusability reusable
Last synced: about 2 months ago
JSON representation
Reusable Prettier config
- Host: GitHub
- URL: https://github.com/devsht/prettier-config
- Owner: devsht
- License: mit
- Created: 2021-04-10T22:24:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-24T11:40:41.000Z (over 4 years ago)
- Last Synced: 2025-10-27T17:59:06.618Z (8 months ago)
- Topics: config, configuration, prettier, react, reusability, reusable
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@devsht/prettier-config
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @devsht/prettier-config
Reusable prettier config
## Installation
```bash
npm i -D @devsht/prettier-config
```
or
```
yarn add --dev @devsht/prettier-config
```
## Usage
Add a key in your **package.json** file.
```
"prettier": "@devsht/prettier-config"
```
**OR**
Create a **.prettierrc** , **.prettierrc.yaml** , **.prettierrc.yml** or **.prettierrc.json** file and export a string.
```
"@devsht/prettier-config"
```
**OR**
Create a **prettier.config.js** or **.prettierrc.js** file and export an object.
```
module.exports = {
...require("@devsht/prettier-config"),
tabWidth: 2,
};
```