Skip to content

Instantly share code, notes, and snippets.

@philpoore
Created June 21, 2021 17:01
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 philpoore/2220af70fa0339f03e5e392dde54f6db to your computer and use it in GitHub Desktop.
Save philpoore/2220af70fa0339f03e5e392dde54f6db to your computer and use it in GitHub Desktop.
Prettier
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
module.exports = {
printWidth: 80,
tabWidth: 4,
useTabs: false,
semi: false,
singleQuote: true,
quoteProps: 'consistent',
jsxSingleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: true,
arrowParens: 'always',
requirePragma: false,
insertPragma: false,
proseWrap: 'always',
htmlWhitespaceSensitivity: 'ignore',
endOfLine: 'lf',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment