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

Package detail

@magicdawn/prettier-config

magicdawn123MIT0.0.4

@magicdawn/prettier-config

prettier-config, magicdawn

readme

@magicdawn/prettier-config

prettier config for self use

npm version npm downloads npm license

Install

$ pnpm add -D @magicdawn/prettier-config

Usage

package.json

{
  "prettier": "@magicdawn/prettier-config"
}

prettier.config.cjs

module.exports = {
  ...require('@magicdawn/prettier-config'),
}

prettier.config.js with type=module

import defaultConfig from '@magicdawn/prettier-config'

export default {
  ...defaultConfig,
}

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

changelog

CHANGELOG

v0.0.4 2024-07-01

  • add --organize-imports argv & PRETTIER_ORGANIZE_IMPORTS env support

v0.0.3 2023-12-05

  • trailingComma & endOfLine 使用 prettier 默认值 (all & lf)

v0.0.2 2022-03-30

  • bracketSpacing 恢复默认 true

v0.0.1 2019-06-27

  • first release