.editorconfig•1.52 kB
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,jsx,ts,tsx,json,css,scss,html,vue}]
charset = utf-8
indent_style = space
indent_size = 2
# JavaScript files
[*.{js,jsx,mjs,cjs}]
indent_style = space
indent_size = 2
max_line_length = 80
# TypeScript files
[*.{ts,tsx}]
indent_style = space
indent_size = 2
max_line_length = 80
# JSON files
[*.json]
indent_style = space
indent_size = 2
max_line_length = 100
# Package.json files
[package.json]
indent_style = space
indent_size = 2
max_line_length = 120
# Markdown files
[*.md]
indent_style = space
indent_size = 2
max_line_length = 100
trim_trailing_whitespace = false
# YAML files
[*.{yml,yaml}]
indent_style = space
indent_size = 2
# Configuration files
[*.{conf,config}]
indent_style = space
indent_size = 2
# Shell scripts
[*.{sh,bash}]
indent_style = space
indent_size = 2
end_of_line = lf
# Batch files
[*.{bat,cmd}]
end_of_line = crlf
# Makefiles
[{Makefile,makefile,*.mk}]
indent_style = tab
indent_size = 4
# Docker files
[{Dockerfile,*.dockerfile}]
indent_style = space
indent_size = 2
# Git files
[{.gitignore,.gitattributes,.gitmodules}]
indent_style = space
indent_size = 2
# Ignore files
[{.eslintignore,.prettierignore}]
indent_style = space
indent_size = 2