Skip to content

aboqasem/prettierrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My Personal Prettier Configurations

{
  "tabWidth": 2,
  "useTabs": false,
  "singleQuote": true,
  "semi": true,
  "trailingComma": "all",
  "arrowParens": "always",
  "bracketSpacing": true,
  "jsxSingleQuote": false,
  "printWidth": 100,
  "quoteProps": "as-needed",
  "endOfLine": "lf"
}

Install

npm i -D @aboqasem/prettierrc
yarn add -D @aboqasem/prettierrc
pnpm add -D @aboqasem/prettierrc

Use

// .prettierrc
"@aboqasem/prettierrc"

Override

/** @type {import('prettier').ParserOptions} */
module.exports = {
  ...require('@aboqasem/prettierrc'),
  printWidth: 100,
};