@phts/prettier-config
v1.2.0
Published
My config for Prettier.
Downloads
8
Readme
@phts/prettier-config
My Prettier config. Works best with @phts/eslint-config
.
Install
$ npm i -D @phts/prettier-config
To able to support @phts/eslint-config
additionally
install prettier-eslint-cli
globally:
$ npm i -g prettier-eslint-cli
Usage
.prettierrc.json
:
"@phts/prettier-config"
Sublime Text integration
Install JsPrettier package and put this into
JsPrettier.sublime-settings
:
{
"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"
}