Skip to content

Instantly share code, notes, and snippets.

@ilkaydnc
Last active September 17, 2021 06:19
Show Gist options
  • Save ilkaydnc/03e96c59ace83211f603f84fa4efbefc to your computer and use it in GitHub Desktop.
Save ilkaydnc/03e96c59ace83211f603f84fa4efbefc to your computer and use it in GitHub Desktop.
My Prettier Config

React

{
  "trailingComma": "es5",
  "tabWidth": 2,
  "semi": false,
  "printWidth": 80,
  "singleQuote": true,
  "useTabs": false,
  "quoteProps": "as-needed",
  "bracketSpacing": true,
  "jsxBracketSameLine": false,
  "arrowParens": "avoid",
  "htmlWhitespaceSensitivity": "strict"
}

Node.js

{
  "trailingComma": "es5",
  "tabWidth": 2,
  "semi": false,
  "printWidth": 100,
  "singleQuote": true,
  "useTabs": false,
  "quoteProps": "as-needed",
  "bracketSpacing": true,
  "arrowParens": "avoid"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment