소스 검색

Created .editorconfig

Editorconfig is more or less standard now to enforce coding style. It might be a good idea to have one in the project, reflecting GO defaults while also using the industry standard / recommended settings for other files that are very likely to be included in a GO project.
chore/proposed-structure
Kristóf Kovács 4 년 전
committed by GitHub
부모
커밋
72a50e37db
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. +22
    -0
      .editorconfig

+ 22
- 0
.editorconfig 파일 보기

@@ -0,0 +1,22 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[{*.go,Makefile,.gitmodules,go.mod,go.sum}]
indent_style = tab

[*.md]
indent_style = tab
trim_trailing_whitespace = false

[*.{yml,yaml,json}]
indent_style = space
indent_size = 2

[*.{js,jsx,ts,tsx,css,less,sass,scss,vue,py}]
indent_style = space
indent_size = 4

불러오는 중...
취소
저장