1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00

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.
This commit is contained in:
David Bridges 2019-06-21 10:11:39 +01:00
parent 982033a1b9
commit 9700f08652

17
.editorconfig Normal file
View File

@ -0,0 +1,17 @@
# 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