From e3425886f027eaf607fbd56833e30970675b3a87 Mon Sep 17 00:00:00 2001 From: ducksblock Date: Fri, 28 Jul 2023 10:39:31 +0530 Subject: [PATCH] Added Prettier support --- .prettierignore | 6 ++++++ .prettierrc | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1c771e0 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +node_modules + +*.yml +*.md +*.json +*.html diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..fa90a74 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,27 @@ +{ + "bracketSpacing": true, + "printWidth": 80, + "proseWrap": "preserve", + "semi": true, + "singleQuote": true, + "trailingComma": "all", + "tabWidth": 4, + "useTabs": true, + "arrowParens": "always", + "endOfLine": "lf", + "overrides": [ + { + "files": "*.json", + "options": { + "singleQuote": false + } + }, + { + "files": ".*rc", + "options": { + "singleQuote": false, + "parser": "json" + } + } + ] +} \ No newline at end of file