Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monogramdesign/prettier-config
Prettier config used at Monogram
https://github.com/monogramdesign/prettier-config
Last synced: 3 months ago
JSON representation
Prettier config used at Monogram
- Host: GitHub
- URL: https://github.com/monogramdesign/prettier-config
- Owner: monogramdesign
- License: mit
- Created: 2022-01-31T04:45:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T16:09:16.000Z (6 months ago)
- Last Synced: 2024-07-28T07:07:30.946Z (4 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@monogram/prettier-config
- Size: 90.8 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# prettier-config
Prettier config used at [monogram.io](https://monogram.io)
## Installing
### Auto install
Executing it with `npx` from the project's root will perform the manual installation steps, installing `@monogram/prettier-config` as a dev dependency and adding `"prettier": "@monogram/prettier-config"` to your project's `package.json`.
```sh
npx @monogram/prettier-config
```### Install manually
Install the package using your package manager
```sh
yarn add -D @monogram/prettier-config
# or
npm i -D @monogram/prettier-config
# or
pnpm i -D @monogram/prettier-config
```Add the `prettier` key to your `package.json`
```diff
+++ "prettier": "@monogram/prettier-config"
```## Extending
Can also be extended like this:
```js
// .prettierrc.js
module.exports = {
...require('@monogram/prettier-config'),
tabWidth: 2,
useTabs: false,
overrides: [
{
files: '*.scss',
options: {
singleQuote: true,
tabWidth: 2,
useTabs: false,
printWidth: 160,
},
},
],
}
```[Check out the `prettier` documentation for more info on sharing configurations](https://prettier.io/docs/en/configuration.html#sharing-configurations).
## Acknowledgment
Inspired by [@github/prettier-config](https://www.npmjs.com/package/@github/prettier-config).