@sisense/prettier-config
v1.9.9
Published
This module contains prettier configurations for sisense projects
Downloads
210
Keywords
Readme
Prettier config
Shared Prettier Config for sisense projects
Install
The module should be installed together with its peer dependencies, that consist of single module - prettier.
# install via npm
$ npm install --save-dev prettier @sisense/prettier-config
# install via yarn
$ yarn add --dev prettier @sisense/prettier-config
Usage
For using this config it is suggested to use next configuration (.prettierrc
):
"@sisense/prettier-config"
For ignoring files that should not be modified by prettier it is suggested to use next configuration (.prettierignore
):
.git/
.idea/
.vscode/
node_modules/
build/
If you are using .editorconfig
there is a need to align it with prettier configuration (.editorconfig
):
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
[*.{md,markdown}]
trim_trailing_whitespace = false
[*.{json, yml}]
indent_size = 2