@unconventional-code/prettier-config
v0.0.3
Published
Prettier standards for Unconventional Code projects.
Downloads
42
Readme
Prettier Standards
This package contains standard Prettier configurations for use in JavaScript and TypeScript packages and services.
Configuration should be managed in the prettier
field in package.json
, rather than a standalone .prettierc
or other file.
A CLI is provided to quickly and easily install standard package versions for Prettier, extend the base Prettier config from package.json
, and add standard lint
scripts for using Prettier.
# Standard configuration
npx @unconventional-code/prettier-config standardize-prettier
Prettier does not currently support extending custom configurations. If you need to deviate from these standards for a package or service, write your own configuration directly in the prettier
field in package.json
, and do not use the CLI. The CLI will overwrite the prettier
field.
{
"prettier": "@unconventional-code/prettier-config"
}
Note, this package is a root-level configuration package. It is not intended to honor any ESLint or TypeScript or testing standards. It simply provides the raw Prettier configuration for consumers.