1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 21:05:01 +00:00
mon-entreprise/.editorconfig
Alexandre Hajjar d3c866daa5 ⬆️ Upgrade prettier to 2.3.2 + modify editorconfig
* Remove the 1000 max_width rule in editorconfig which is obsolete since
  prettier 2.3.2 has fixed the key-wrapping problem.
* Let prettier run on yaml files (notably modele-social, but not the translation
  files).
* Simplify editorconfig file.
* Let editorconfig trim trailing whitespaces in yaml files, but ignore locale
  yaml files.
* Allow prettier on publicodes.
2021-07-26 12:26:25 +02:00

25 lines
498 B
INI

root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
# We shall not define indent_size ⬇️ when using tabs.
# tab_width doesn't make much sense as it can be left to the reader to decide.
indent_style = tab
insert_final_newline = true
max_line_length = 80
[**.{js,jsx,ts,tsx}]
indent_size = 2
[**.{yml,yaml}]
# Spaces are mandatory for yaml files:
indent_style = space
indent_size = 2
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false