@nice-move/prettier-config
v0.14.11
Published
A `prettier` config created by personal preferences
Downloads
641
Maintainers
Readme
@nice-move/prettier-config
A prettier config created by personal preferences.
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
- @nice-move/prettier-plugin-package-json
- prettier-plugin-ini
- @prettier/plugin-xml
- prettier-plugin-css-order
- @nice-move/prettier-plugin-sort-imports
Auto load plugins when they are installed
- prettier-plugin-ssh-config
- prettier-plugin-groovy
- prettier-plugin-java
- prettier-plugin-nginx
- prettier-plugin-tailwindcss
- @cospaia/prettier-plugin-clojure
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