https://github.com/phts/prettier-config
My config for Prettier
https://github.com/phts/prettier-config
npm-package prettier prettier-config
Last synced: 3 months ago
JSON representation
My config for Prettier
- Host: GitHub
- URL: https://github.com/phts/prettier-config
- Owner: phts
- Created: 2019-05-20T21:53:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T12:25:03.000Z (about 2 years ago)
- Last Synced: 2025-02-20T04:19:32.038Z (4 months ago)
- Topics: npm-package, prettier, prettier-config
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@phts/prettier-config
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @phts/prettier-config
[](https://www.npmjs.com/package/@phts/prettier-config)
My Prettier config. Works best with [`@phts/eslint-config`](https://github.com/phts/eslint-config).
## Install
```bash
$ npm i -D @phts/prettier-config
```To able to support [`@phts/eslint-config`](https://github.com/phts/eslint-config) additionally
install [`prettier-eslint-cli`](https://www.npmjs.com/package/prettier-eslint) globally:```bash
$ npm i -g prettier-eslint-cli
```## Usage
`.prettierrc.json`:
```json
"@phts/prettier-config"
```## Sublime Text integration
Install [JsPrettier](https://packagecontrol.io/packages/JsPrettier) package and put this into
`JsPrettier.sublime-settings`:```json
{
"auto_format_on_save": true,
"auto_format_on_save_excludes": ["*/node_modules/*"],
"auto_format_on_save_requires_prettier_config": true,
"prettier_cli_path": "./node_modules/.bin/prettier"
}
```