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

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.
18 lines
325 B
INI
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
|