# top-most EditorConfig file
root = true

# Universal settings for all file types
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
tab_width = 2

# React & TypeScript
[*.{ts,tsx,js,jsx}]
quote_type = single

# Sass & CSS
[*.{sass,scss,css}]
insert_final_newline = true

# Webpack configs, Node scripts, and Data files
[*.{json,jsonc,yml,yaml,cjs,mjs}]
indent_size = 2

# HTML templates
[*.{htm,html}]
indent_size = 2

# Markdown overrides
[*.{md,markdown,mdc}]
trim_trailing_whitespace = false