1.0.0 • Published 2 years ago

@danielwerg/prettier-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

prettier-config

āš™ļø Shared Prettier config

tsconfig • ESLint Config

šŸ’¾ Install

yarn add -D @danielwerg/prettier-config
yarn add -D prettier

VSCode Prettier ESLint extension

GitHub • Marketplace • VSCode • VSCodium

šŸ‘€ Usage

Edit package.json:

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

Or if you want to put it in a separate file

.prettierrc

"@danielwerg/prettier-config"

Or if you want to extend it

.prettierrc.js

module.exports = {
  /** @type {import('prettier').Options} */ // optional IntelliSense support (neeeds `@types/prettier`)
  ...require('@danielwerg/prettier-config'),
  printWidth: 100
};