mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-08 23:25:02 +00:00
* 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.
25 lines
498 B
INI
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
|
|
|