Skip to content

Instantly share code, notes, and snippets.

@mangkoran
Created January 9, 2022 15:25
Show Gist options
  • Save mangkoran/23430bcb4f5523dea974cfe3ff479d16 to your computer and use it in GitHub Desktop.
Save mangkoran/23430bcb4f5523dea974cfe3ff479d16 to your computer and use it in GitHub Desktop.
# EditorConfig is awesome: https://EditorConfig.org
# https://github.com/mdn/kuma/blob/master/.editorconfig
# Top-most EditorConfig file ?
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Indentation
indent_style = space
indent_size = 4
# YAML and Jenkins use two spaces
[{*.{yaml,yml},Jenkinsfile}]
indent_size = 2
# git and Makefile use the superior tabs
[{.git*,Makefile,make.bat}]
indent_style = tab
# https://github.com/facebook/react/blob/main/.editorconfig
# JavaScript and TypeScript
[*.{js,json,jsx,ts,tsx}]
indent_size = 2
max_line_length = 80
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[COMMIT_EDITMSG]
max_line_length = 0
# https://google.github.io/styleguide/htmlcssguide.html#Indentation
[*.{html,css}]
indent_size = 2
# EditorConfig for /home/mangkoran/repos/mangkoran-site/pages/index.tsx
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
max_line_length = 80
tab_width = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment