npm.io
0.15.9 • Published 5d ago

@nice-move/prettier-config

Licence
MIT
Version
0.15.9
Deps
8
Size
11 kB
Vulns
0
Weekly
1.8K

@nice-move/prettier-config prettier

A prettier config created by personal preferences.

npm github node

Extname support

  • .gql .md
  • .editorconfig
  • .css .less .scss
  • .cjs .mjs .js .jsx
  • .yml .yaml .ini .json
  • .htm .html .xml .svg .vue

Filename support

  • .npmrc
  • .babelrc
  • .sentryclirc
  • .ssh/config ssh_config
Mini progarm
  • .acss
  • .jxss
  • .ttss
  • .qss .qs
  • .wxss .wxs
Include plugins
Auto load plugins when they are installed
Addons support from kroki
  • .bpmn
  • .bytefield
  • .excalidraw
  • .markmap
  • .vega
  • .vegalite
  • .wavedrom
  • .wireviz

Installation

npm install prettier @nice-move/prettier-config --save-dev

Usage

Add to package.json

// example: package.json
{
  "prettier": "@nice-move/prettier-config"
}

Then run

prettier --write .
Editorconfig support
# .editorconfig

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
quote_type = single
tab_width = 2
trim_trailing_whitespace = true

Keywords