@tresmo/config-prettier
v0.3.6
Published
Add file watchers to webstorm for automatic code styling using [prettier](https://github.com/prettier/prettier) with tresmo opinionated formatting.
Downloads
21
Readme
@tresmo/config-prettier
Add file watchers to webstorm for automatic code styling using prettier with tresmo opinionated formatting.
Available filetypes: .ts
, .js
, .json
, .scss
, .md
Installation for Webstorm
install the dependencies
yarn add --dev prettier @tresmo/config-prettier
and create the following .prettierrc.js
anywhere in your project root.
module.exports = require('@tresmo/config-prettier')
Installation for VS-Code
To use Prettier in VS-Code, you don't have to install
@tresmo/config-prettier
. Instead, there is a nice prettier-plugin available that you can install.Add
"editor.formatOnSave": true
to your workspace-settings-json.Add
.prettierrc
in your root-file and enter the following to overwrite the defaults:
{
"semi": false,
"singleQuote": true,
"printWidth": 100
}