Skip to content

Commit f708852

Browse files
clydinalan-agius4
authored andcommitted
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. (cherry picked from commit ee86327)
1 parent 70cf250 commit f708852

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
/bazel-out/
2+
/dist-schema/
13
/etc/api
4+
/tests/
5+
/README.md
6+
/CONTRIBUTING.md
7+
.yarn/
8+
dist/
9+
third_party/

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"printWidth": 100,
3+
"quoteProps": "preserve",
34
"singleQuote": true,
45
"trailingComma": "all"
56
}

0 commit comments

Comments
 (0)