Skip to content

robinvandernoord/su6-plugin-prettier

Repository files navigation

su6-plugin-prettier

Plugin for su6 that adds prettier.io functionality.

Installation

pip install su6-plugin-prettier
# or
pip install su6[prettier]

Usage

# optionally, if prettier isn't installed yet:
su6 install-prettier

su6 prettier # to check
su6 prettier --fix # to change files

pyproject.toml

(all keys are optional, and also usable as flags to prettier (e.g. --target ./path/to/files))

[tool.su6.prettier]
target = "./path/to/js/files"
node_modules = "path/to/node_modules"

License

su6-plugin-prettier is distributed under the terms of the MIT license.