0.3.6 • Published 5 years ago
@tresmo/config-prettier v0.3.6
@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-prettierand 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": trueto your workspace-settings-json.Add
.prettierrcin your root-file and enter the following to overwrite the defaults:
{
"semi": false,
"singleQuote": true,
"printWidth": 100
}