Skip to content
prettier-config / 1.9.9

prettier-config 1.9.9

Install from the command line:
Learn more about npm packages
$ npm install @sisense/prettier-config@1.9.9
Install via package.json:
"@sisense/prettier-config": "1.9.9"

About this version

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

Details


Assets

  • prettier-config-1.9.9.tgz

Download activity

  • Total downloads 6,285
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all