Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skarab42/prettier-config
My shared Prettier config
https://github.com/skarab42/prettier-config
config prettier prettier-config
Last synced: 15 days ago
JSON representation
My shared Prettier config
- Host: GitHub
- URL: https://github.com/skarab42/prettier-config
- Owner: skarab42
- License: mit
- Created: 2022-07-23T09:21:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T06:07:19.000Z (over 2 years ago)
- Last Synced: 2024-10-04T23:47:06.878Z (about 1 month ago)
- Topics: config, prettier, prettier-config
- Homepage: https://www.npmjs.com/package/@skarab/prettier-config
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# My shared Prettier config
## Installation
```bash
pnpm add -D prettier @skarab/prettier-config
```## Configuration
Select one of the three methods below according to your needs and/or preferences.
### Setup in `package.json`
```ts
{
"prettier": "@skarab/prettier-config"
}
```### Export from `.prettierrc.json`
```json
"@skarab/prettier-config"
```### Or extends in `.prettierrc.js`
```js
module.exports = {
...require('@skarab/prettier-config'),
semi: false,
};
```# My other shared configurations
- [@skarab/eslint-config](https://github.com/skarab42/eslint-config)
- [@skarab/prettier-config](https://github.com/skarab42/prettier-config)
- [@skarab/typescript-config](https://github.com/skarab42/typescript-config)