跳到主要内容

@openclothes/prettier-config

open clothes's prettier-config package holds open clothes's preferred configuration for the Prettier code formatter.

It is published on NPM as @openclothes/prettier-config .
The source code for this package is available in our monorepo on Codeberg under packages/prettier-config .

Usage

This package only provides a default export, which is a JSON file.

To use it, do not install it, but instead update you package.json file as such:

{
// ...
"prettier": "@openclothes/prettier-config"
}

Prettier options

The Prettier options configured by this package:

OptionValue
semifalse
singleQuotetrue
trailingComma"es5"
printWidth100
RELATED

Please see the Prettier options documentation for information about the effects of each option.