Skip to main content

@freesewing/prettier-config

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

It is published on NPM as @freesewing/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": "@freesewing/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.