Skip to content

Commit

Permalink
editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Aug 27, 2024
1 parent 5bd8741 commit 6261cf9
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Most text files
[*]
charset = utf-8
max_line_length = none
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4 # bash8

# Machine-generated files
[*.{scpt,plist,dot,db}]
trim_trailing_whitespace = false
insert_final_newline = none
indent_size = none

# Freeform text
[*.{txt,md,cob,emacs,el,lisp,lsp,scm,setup,meta,clj,rkt,ecl,sbcl,abcl,eclrc,sbclrc,asd,snusp}]
indent_size = none

# Fix cmake
[CMakeLists.txt]
indent_size = 4 # bash8

# Align keys
[*.{yaml,yml,reek,.yamllint}]
indent_size = 2

# Placeholder files
[*.{gitkeep,__init__.py}]
insert_final_newline = none

#
# Windows junk
#
[*.{cmd,bat,reg,ps1,vbs,cs,fs,fsx,ahk,psenvrc}]
end_of_line = crlf
insert_final_newline = false
[settings.json]
end_of_line = crlf
insert_final_newline = false

# Lexer restrictions
[{makefile,Makefile,GNUmakefile,BSDmakefile}]
indent_style = tab
[*.{makefile,Makefile,mk,GNUmakefile,BSDmakefile,go,gitmodules}]
indent_style = tab

# Natural HTML nesting
[*.js]
quote_type = single

# Compressed artifacts
[*.min.*]
insert_final_newline = false
[*-min.*]
insert_final_newline = false

# Potential mixed indentations
[*.patch]
trim_trailing_whitespace = false
indent_style = none
indent_size = none

0 comments on commit 6261cf9

Please sign in to comment.