https://github.com/peralva/prettier-config
Prettier Configuration
https://github.com/peralva/prettier-config
config configuration prettier
Last synced: 4 months ago
JSON representation
Prettier Configuration
- Host: GitHub
- URL: https://github.com/peralva/prettier-config
- Owner: peralva
- License: mit
- Created: 2024-10-21T00:05:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T20:03:09.000Z (over 1 year ago)
- Last Synced: 2025-06-17T04:48:50.677Z (about 1 year ago)
- Topics: config, configuration, prettier
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@peralva/prettier-config
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @peralva/prettier-config
Prettier Configuration
[](https://www.npmjs.com/package/@peralva/prettier-config?activeTab=versions)
[](https://github.com/peralva/prettier-config/releases)
[](https://github.com/peralva/prettier-config?tab=MIT-1-ov-file#readme)
[](https://www.npmjs.com/package/@peralva/prettier-config)
[](https://github.com/peralva/prettier-config/actions/workflows/npm-publish.yml)
## Installation
```bash
npm install -D @peralva/prettier-config
```
## Usage
Add to `package.json`:
```json
{
"prettier": "@peralva/prettier-config"
}
```
If you don’t want to use package.json, you can use any of the supported extensions to export a string, e.g. `.prettierrc`:
"@peralva/prettier-config"
### Extending the config
To extend the configuration to overwrite some properties from the configuration, import the file in a `.prettierrc.mjs` or `prettier.config.mjs` file and export the modifications, e.g:
```mjs
import prettierConfig from '@peralva/prettier-config';
/**
* @type {import('prettier').Config}
*/
export default {
...prettierConfig,
semi: false,
};
```
For more details, see https://prettier.io/docs/en/configuration