Skip to content

yogeshkotadiya/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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