# EditorConfig is awesome: https://EditorConfig.org # 顶级配置文件 root = true # 所有文件的默认设置 [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true # TypeScript/JavaScript 文件 [*.{ts,tsx,js,jsx}] indent_style = space indent_size = 2 # JSON 文件 [*.json] indent_style = space indent_size = 2 # Markdown 文件(不删除行尾空格,因为两个空格代表换行) [*.md] trim_trailing_whitespace = false # YAML 文件 [*.{yml,yaml}] indent_style = space indent_size = 2