Skip to content

Instantly share code, notes, and snippets.

@affeldt28
Last active February 26, 2023 02:10
Show Gist options
  • Save affeldt28/26a20d25657a1b9328514d3d771ef756 to your computer and use it in GitHub Desktop.
Save affeldt28/26a20d25657a1b9328514d3d771ef756 to your computer and use it in GitHub Desktop.
Formatting config
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
[*.md]
max_line_length = off
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[*.json]
indent_style = space
indent_size = 4
/** @type {import('@types/prettier').Config} */
module.exports = {
semi: true,
singleQuote: true,
quoteProps: "as-needed",
jsxSingleQuote: false,
trailingComma: "all",
bracketSpacing: true,
bracketSameLine: false,
arrowParens: "always",
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
vueIndentScriptAndStyle: false,
embeddedLanguageFormatting: "auto",
singleAttributePerLine: false,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment