From 6a55d05f3048b050f16d6ac37269ba5308ad2bf8 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Thu, 2 Mar 2023 00:28:00 -0800 Subject: [PATCH] Moves `.prettierrc` to `package.json` (#1186) Short and sweet PR that does exactly what the title says. Note that this only affects developers of our theme, and is a no-op on the rest of the codebase (including formatting) -- it's just moving a config file! The nice benefits: higher precedence, and one less file (that can confuse users who are forking this repo). --- .prettierrc | 7 ------- package.json | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 70175ce..0000000 --- a/.prettierrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "endOfLine": "lf", - "semi": false, - "singleQuote": false, - "tabWidth": 2, - "trailingComma": "es5" -} \ No newline at end of file diff --git a/package.json b/package.json index 8fe0c3b..30d8255 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,12 @@ "no-descending-specificity": null, "scss/no-global-function-names": null } + }, + "prettier": { + "endOfLine": "lf", + "semi": false, + "singleQuote": false, + "tabWidth": 2, + "trailingComma": "es5" } }