Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@zazen/prettier-config

stormwarning200ISC1.1.1

Apply a consistent code style, free of weariness and confusion

readme

@zazen/prettier-config

Usage

npm install --save-dev prettier @zazen/prettier-config

Add the following to your package.json:

  "prettier": "@zazen/prettier-config",

To extend the configuration, create prettier.config.js and spread this config onto your own config object:

import zazenConfig from '@zazen/prettier-config'

/** @type {import('prettier').Config} */
const config = {
    ...zazenConfig,
    experimentalTernaries: true,
}

export default config

changelog

@zazen/prettier-config

1.1.1

Patch Changes

  • Add explicit exports field (#240)

1.1.0

Minor Changes

  • Override options for CSS and Sass code (#223)

    Increases printWidth and uses double quotes, following the @stylistic Stylelint conventions.

1.0.0

Major Changes

  • Initial release 🎉 (#215)