1.0.1 • Published 5 years ago

@yogeshkotadiya/prettier-config v1.0.1

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

prettier-config

npm package of prettier config


Install

npm install --dev @yogeshkotadiya/prettier-config

or

yarn add -D @yogeshkotadiya/prettier-config

Configuration

{
  "printWidth": 80,
  "tabWidth": 2,
  "trailingComma": "es5",
  "singleQuote": false,
  "semi": true,
  "bracketSpacing": true,
  "jsxBracketSameLine": false,
  "endOfLine": "lf"
}

Usage

In your .prettierrc.js file

module.exports = {
  ...require("@yogeshkotadiya/prettier-config"),
  tabWidth: 4
  //Extend or overwrite with your own preferable options
}

Author

Yogesh Kotadiya