0.3.6 • Published 4 years ago

@tresmo/config-prettier v0.3.6

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

@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
}
0.3.6

4 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.1.0

6 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.4

7 years ago