# https://editorconfig.org
root = true # 已经是顶层配置文件，不必继续向上搜索

[*]
charset = utf-8 # 编码字符集

[*.{js,jsx,ts,tsx,vue}]
indent_style = space #缩进空格
indent_size = 4 # 缩进 4 个空格
end_of_line = lf # 每行结尾换行符
insert_final_newline = false # 末尾不插入新行
ij_any_space_before_catch_left_brace = true
ij_any_special_else_if_treatment = true
ij_any_finally_on_new_line = true # finally 语句换行
ij_any_catch_on_new_line = true # catch 语句换行
ij_any_else_on_new_line = true # else 语句换行
ij_typescript_spaces_within_imports = true # import 两侧增加空格
ij_javascript_spaces_within_imports = true # import 两侧增加空格

ij_javascript_space_before_async_arrow_lparen = true
ij_typescript_space_before_async_arrow_lparen = true
ij_typescript_spaces_within_object_literal_braces = true # 对象左括号右侧增加空格
ij_javascript_spaces_within_object_literal_braces = true # 对象左括号右侧增加空格
#
ij_any_spaces_around_assignment_operators = true
# 赋值语句两侧增加空格
# ij_any_spaces_around_assignment_operators = true
ij_editorconfig_spaces_around_assignment_operators = true

#  属性之间加入空行
ij_any_blank_lines_around_field = 1
ij_any_blank_lines_around_field_in_interface = 1

ij_typescript_use_double_quotes = true # 双引号
ij_javascript_use_double_quotes = true # 双引号
trim_trailing_whitespace = true
max_line_length = 160
# new_line= true
# ij_any_keep_simple_methods_in_one_line = true
# ij_any_keep_simple_blocks_in_one_line = true
# ij_typescript_keep_simple_blocks_in_one_line = true
# ij_any_call_parameters_wrap = on_every_item
# ij_any_align_multiline_parameters_in_calls = false
# ij_any_call_parameters_right_paren_on_new_line = false
# max_line_length = 1000
# max_line_length = off
# max_line_length = 1550
# ij_typescript_enforce_trailing_comma = remove
# ij_javascript_enforce_trailing_comma = remove
ij_json_keep_trailing_comma = false
ij_json_wrap_long_lines = true
ij_typescript_methods_wrap = before-first-and-after-last
ij_javascript_methods_wrap = before-first-and-after-last
