Add .editorconfig file and make Prettier use it

This commit is contained in:
Kimmo Puputti 2017-12-11 11:27:24 +02:00
parent 1f733e3e75
commit 50de197de2
2 changed files with 14 additions and 1 deletions

14
.editorconfig Normal file
View file

@ -0,0 +1,14 @@
# http://editorconfig.org/
# top-most EditorConfig file
root = true
# Formatting options. Note: Prettier also uses some of these.
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
max_line_length = 100

View file

@ -69,7 +69,6 @@
"audit": "nsp check --preprocessor yarn"
},
"prettier": {
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"proseWrap": "always"