From 50de197de2839661167891a00f42e1beac9fe100 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Mon, 11 Dec 2017 11:27:24 +0200 Subject: [PATCH] Add .editorconfig file and make Prettier use it --- .editorconfig | 14 ++++++++++++++ package.json | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..a166395f --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/package.json b/package.json index c26d8a77..448b773e 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "audit": "nsp check --preprocessor yarn" }, "prettier": { - "printWidth": 100, "singleQuote": true, "trailingComma": "es5", "proseWrap": "always"