1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00
psychojs/.editorconfig
David Bridges 9700f08652 ENH: adds .editorconfig file to repo
The indentation in JS and HTML looks wrong because of GitHubs default
settings (I think is 8 spaces for an indent?). This .editorconfig file
allows us to define what indentation params should be used for specific
file types, making the JS more readable and consistent with code style
convention.
2019-06-21 10:11:39 +01:00

18 lines
325 B
INI

# top-most EditorConfig file
root = true
# Don't use tabs for indentation.
[*]
indent_style = space
# (Please don't specify an indent_size here; that has too many unintended consequences.)
# Python files
[*.{py}]
indent_style = tab
indent_size = 4
# HTML+CSS/JS files
[*.{html,css,js}]
indent_style = tab
indent_size = 2