https://github.com/yama-devkit/prettier-config
A simple & effective Prettier shared configuration
https://github.com/yama-devkit/prettier-config
Last synced: about 1 month ago
JSON representation
A simple & effective Prettier shared configuration
- Host: GitHub
- URL: https://github.com/yama-devkit/prettier-config
- Owner: yama-devkit
- Created: 2025-08-24T07:56:18.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T13:51:11.000Z (10 months ago)
- Last Synced: 2025-10-02T19:12:57.304Z (9 months ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prettier configuration
An opinionated code formatter that supports many languages.
## Installation
Install the shared prettier configuration by running the following command:
```sh
npm install --save-dev prettier @kiabi-lab/prettier-config
```
## Usage
Open your `package.json` file and add the following line at root:
```json title="package.json"
{
"prettier": "@kiabi-lab/prettier-config"
}
```
Delete your previous prettier configuration file (generally named `.prettierrc`) and then run the
following command to format your code:
```sh
npx prettier --write .
```
Or simply run the following command to check:
```sh
npx prettier --check .
```
## About
This configuration use the following parameters:
| Name | Value |
| :------------ | :---- |
| printWidth | 120 |
| semi | true |
| singleQuote | true |
| tabWidth | 4 |
| trailingComma | all |
And the following plugins:
- [css-order](https://github.com/Siilwyn/prettier-plugin-css-order)
- [organize-attributes](https://github.com/NiklasPor/prettier-plugin-organize-attributes)
- [organize-imports](https://github.com/simonhaenisch/prettier-plugin-organize-imports)