前端代码编辑器代码格式配置

VUE

https://github.com/vuejs/vue/blob/main/.editorconfig

# https://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

React

https://github.com/facebook/react/blob/main/.editorconfig

# https://editorconfig.org/
root = true  
  
[*]  
charset = utf-8  
end_of_line = lf  
indent_size = 2  
indent_style = space  
insert_final_newline = true  
max_line_length = 80  
trim_trailing_whitespace = true  
  
[*.md]  
max_line_length = 0  
trim_trailing_whitespace = false  
  
[COMMIT_EDITMSG]  
max_line_length = 0  
Licensed under CC BY-NC-SA 4.0
使用 Hugo 构建
主题 StackJimmy 设计