From a20b5f3d0c6793c627f2c5f8f8123eb2cdcd756f Mon Sep 17 00:00:00 2001 From: yarastqt Date: Sun, 8 Sep 2019 18:10:12 +0300 Subject: [PATCH] chore: add prettier --- .editorconfig | 10 +++++----- .prettierrc | 10 ++++++++++ package.json | 1 + 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .prettierrc diff --git a/.editorconfig b/.editorconfig index e132fbde..07de1dde 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,10 +2,10 @@ root = true [*] +charset = utf-8 +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true end_of_line = lf insert_final_newline = true -trim_trailing_whitespace = true - -[*.{js,ts,tsx}] -indent_style = space -indent_size = 4 +max_line_length = 100 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..7394165d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "arrowParens": "always", + "endOfLine": "lf", + "parser": "typescript", + "printWidth": 100, + "semi": false, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "all" +} diff --git a/package.json b/package.json index 162ab772..f692b462 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "lerna": "3.5.1", "mocha": "5.2.0", "nyc": "13.1.0", + "prettier": "^1.18.2", "pretty-bytes": "5.2.0", "react": "16.8.4", "react-dom": "16.8.4",