Skip to content

Commit

Permalink
✅ Add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
lajarre committed May 15, 2020
1 parent ced589a commit 6b264c1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 14 deletions.
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

[**.{js,jsx,ts,tsx}]
indent_size = 2
max_line_length = 80


[**.{yml,yaml}]
# Spaces are mandatory for yaml files:
indent_style = space
indent_size = 2
# A high max_line_length is needed as prettier doesn't manage property-name
# line-wrapping correctly:
# See https://github.com/prettier/prettier/issues/5599
max_line_length = 1000
trim_trailing_whitespace = false

[*.md]
trim_trailing_whitespace = false
14 changes: 0 additions & 14 deletions .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bracketSpacing: true
semi: false
singleQuote: true

0 comments on commit 6b264c1

Please sign in to comment.