Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikhail-filin/prettier-config
Personal (but extendable!) prettier configuration
https://github.com/mikhail-filin/prettier-config
prettier prettier-config
Last synced: 4 days ago
JSON representation
Personal (but extendable!) prettier configuration
- Host: GitHub
- URL: https://github.com/mikhail-filin/prettier-config
- Owner: mikhail-filin
- License: mit
- Created: 2023-10-29T09:49:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-27T13:49:24.000Z (about 1 year ago)
- Last Synced: 2024-11-15T21:20:14.287Z (2 months ago)
- Topics: prettier, prettier-config
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@mfilin/prettier-config
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![npm publish status](https://github.com/mikhail-filin/prettier-config/actions/workflows/npm-publish.yml/badge.svg)
# @mfilin/prettier-config
Extendable prettier configuration from person who's lazy enough to pack single config as a npm package.
Comes with both prettier config and `.prettierignore`.## Installation
```bash
npm i --save-dev @mfilin/prettier-config
```## Configuration
There are multiple options. Note that you need only one of them, refer to [official
docs](https://prettier.io/docs/en/configuration)In package.json:
```json
"prettier": "@mfilin/prettier-config"
```In `.prettierrc`:
```json
"@mfilin/prettier-config"
```## Extending .prettierignore
I'm not aware of a way to extend `.prettierignore` in a fancy way, but prettier can be run with `ignore-path` flag in
the CLI.```bash
npx prettier . --write --ignore-path node_modules/@mfilin/prettier-config/.prettierignore
```