@unconventional-code/prettier-config

0.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @unconventional-code/prettier-config

Weekly Downloads

4

Version

0.0.3

License

none

Unpacked Size

1.62 kB

Total Files

3

Last publish

Collaborators

  • unconventional-jackson