From 6464e7a3c2cfd3cccba28c230f7107883f43ed0b Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Fri, 1 Sep 2017 11:06:30 -0400 Subject: [PATCH] feat(prettier): adds prettier closes issue #41 --- .editorconfig | 15 +++++++++++++-- .prettierrc | 5 +++++ package.json | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .prettierrc diff --git a/.editorconfig b/.editorconfig index d4eed840..5b90934c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,18 @@ +# http://editorconfig.org root = true [*] +charset = utf-8 end_of_line = lf -insert_final_newline = false -indent_style = space indent_size = 2 +indent_style = space +insert_final_newline = true +max_line_length = 80 +trim_trailing_whitespace = true + +[*.md] +max_line_length = 0 +trim_trailing_whitespace = false + +[COMMIT_EDITMSG] +max_line_length = 0 \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..cfb2abe5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "printWidth": 100, + "parser": "typescript", + "singleQuote": true +} diff --git a/package.json b/package.json index 746c98f1..2e1bfff3 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "merge2": "~1.1.0", "mkdirp": "~0.5.1", "npm-run-all": "~4.0.2", + "prettier": "^1.6.1", "pump": "~1.0.2", "rimraf": "~2.6.1", "shx": "~0.2.2",