Skip to content

Commit

Permalink
build: update prettier configuration and ignore files
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
clydin authored and alan-agius4 committed Apr 27, 2021
1 parent 70cf250 commit f708852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/bazel-out/
/dist-schema/
/etc/api
/tests/
/README.md
/CONTRIBUTING.md
.yarn/
dist/
third_party/
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"printWidth": 100,
"quoteProps": "preserve",
"singleQuote": true,
"trailingComma": "all"
}

0 comments on commit f708852

Please sign in to comment.