@tresmo/config-prettier

0.3.6 • Public • Published

@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

  1. 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.

  2. Add "editor.formatOnSave": true to your workspace-settings-json.

  3. Add .prettierrc in your root-file and enter the following to overwrite the defaults:

{
  "semi": false,
  "singleQuote": true,
  "printWidth": 100
}

Readme

Keywords

none

Package Sidebar

Install

npm i @tresmo/config-prettier

Weekly Downloads

6

Version

0.3.6

License

none

Unpacked Size

17.7 kB

Total Files

8

Last publish

Collaborators

  • tresmo