Skip to content

Instantly share code, notes, and snippets.

@justforuse
Created December 20, 2021 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justforuse/08b2f20467b69495d74b8d89bcdb04dc to your computer and use it in GitHub Desktop.
Save justforuse/08b2f20467b69495d74b8d89bcdb04dc to your computer and use it in GitHub Desktop.
Prettier configuration
module.exports = {
// Default: 80
printWidth: 120,
// Default: 2
tabWidth: 4,
// Default: false
useTabs: false,
// Default: true
semi: true,
// Default: false
singleQuote: true,
// Default: 'none'
trailingComma: 'es5',
// Default: true
bracketSpacing: true,
// Default: false
jsxBracketSameLine: false,
// Default: 'avoid'
arrowParens: 'avoid',
// Default: 0
rangeStart: 0,
// Default: Infinity
rangeEnd: Infinity,
/* no parser */
/* no filePath */
// Default: false
requirePragma: false,
// Default: false
insertPragma: false,
// Default: 'preserve'
proseWrap: 'preserve',
// Default: 'css'
htmlWhitespaceSensitivity: 'strict',
// Default: 'auto'
endOfLine: 'lf',
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment