From ad6bf697cc4caea9427cda71dd754d30d7fefe20 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:06:20 -0400 Subject: [PATCH] build: update prettier configuration and ignore files Quoted properties are now configured to be preserved within code and is needed for cases of closure compiler usage. The ignore files list is also updated to now ignore all directories that contain code that should not be formatted; either because the code is auto-generated, an output directory, or third party vendor code. --- .prettierignore | 8 ++++++++ .prettierrc | 1 + 2 files changed, 9 insertions(+) diff --git a/.prettierignore b/.prettierignore index fbcd212375a5..04975244c3e8 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,9 @@ +/bazel-out/ +/dist-schema/ /etc/api +/tests/ +/README.md +/CONTRIBUTING.md +.yarn/ +dist/ +third_party/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 5e2863a11f68..8ef20e3c1ea0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "printWidth": 100, + "quoteProps": "preserve", "singleQuote": true, "trailingComma": "all" }