@defin/prettier-config
v1.0.0
Published
A prettier config for Defin projects
Downloads
3
Readme
@defin/prettier-config
Usage
npm i -D @defin/prettier-config prettier
Add
"prettier": "@defin/prettier-config"
to package.json.Add .editorconfig file on project root. For example,
root = true [*] indent_style = space indent_size = 2 charset = utf-8 end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true [*.{js,jsx,ts}] indent_size = 4 indent_style = tab [*.{diff,md}] trim_trailing_whitespace = false [Makefile] indent_style = tab
See https://prettier.io/docs/en/install.html