.editorconfig 816 B

123456789101112131415161718192021222324
  1. # EditorConfig is awesome: https://EditorConfig.org
  2. # top-most EditorConfig file 表示是最顶层的配置文件,发现设为true时,才会停止查找.editorconfig文件
  3. root = true
  4. # Unix-style newlines with a newline ending every file 对于所有的文件 始终在文件末尾插入一个新行
  5. [*]
  6. end_of_line = lf
  7. insert_final_newline = true
  8. # Matches multiple files with brace expansion notation
  9. # Set default charset 对于所有的js文件,设置文件字符集为utf-8
  10. [*.{js,vue,scss}]
  11. charset = utf-8
  12. # 4 space indentation 控制vue文件类型的缩进大小
  13. [*.js,vue,scss]
  14. indent_style = space
  15. indent_size = 4
  16. # Matches the exact files either package.json or .travis.yml 设置确切文件 package.json/.travis/.yml的缩进类型
  17. [{package.json}]
  18. indent_style = space
  19. indent_size = 2