Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 664 Bytes

README.md

File metadata and controls

52 lines (36 loc) · 664 Bytes

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