From bfe64b1510dfeec58bf6814940d315e3c217c8cf Mon Sep 17 00:00:00 2001 From: mauwii Date: Sat, 18 Feb 2023 14:43:41 +0100 Subject: [PATCH] allign prettierrc with config in frontend --- .prettierignore | 14 ++++++++++++++ .prettierrc.yaml | 14 +++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..2ef13d5aae --- /dev/null +++ b/.prettierignore @@ -0,0 +1,14 @@ +invokeai/frontend/.husky +invokeai/frontend/patches + +# Ignore artifacts: +build +coverage +static +invokeai/frontend/dist + +# Ignore all HTML files: +*.html + +# Ignore deprecated docs +docs/installation/deprecated_documentation diff --git a/.prettierrc.yaml b/.prettierrc.yaml index ce4b99a07b..8050e4cbb7 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -1,9 +1,10 @@ -endOfLine: lf -tabWidth: 2 -useTabs: false -singleQuote: true -quoteProps: as-needed embeddedLanguageFormatting: auto +endOfLine: lf +singleQuote: true +semi: true +tabWidth: 2 +trailingComma: es5 +useTabs: false overrides: - files: '*.md' options: @@ -11,3 +12,6 @@ overrides: printWidth: 80 parser: markdown cursorOffset: -1 + - files: 'invokeai/frontend/public/locales/*.json' + options: + tabWidth: 4