diff --git a/invokeai/frontend/web/.prettierrc.js b/invokeai/frontend/web/.prettierrc.js deleted file mode 100644 index c7f57d1475..0000000000 --- a/invokeai/frontend/web/.prettierrc.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - ...require('@invoke-ai/prettier-config-react'), - overrides: [ - { - files: ['public/locales/*.json'], - options: { - tabWidth: 4, - }, - }, - ], -}; diff --git a/invokeai/frontend/web/.prettierrc.json b/invokeai/frontend/web/.prettierrc.json new file mode 100644 index 0000000000..a9576c8a4a --- /dev/null +++ b/invokeai/frontend/web/.prettierrc.json @@ -0,0 +1,17 @@ +{ + "$schema": "http://json.schemastore.org/prettierrc", + "trailingComma": "es5", + "printWidth": 120, + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "endOfLine": "auto", + "overrides": [ + { + "files": ["public/locales/*.json"], + "options": { + "tabWidth": 4 + } + } + ] +} diff --git a/invokeai/frontend/web/package.json b/invokeai/frontend/web/package.json index 7a477f5668..452c666cd9 100644 --- a/invokeai/frontend/web/package.json +++ b/invokeai/frontend/web/package.json @@ -112,7 +112,6 @@ }, "devDependencies": { "@eslint/js": "^9.31.0", - "@invoke-ai/prettier-config-react": "^0.0.7", "@storybook/addon-docs": "^9.0.17", "@storybook/addon-links": "^9.0.17", "@storybook/react-vite": "^9.0.17", diff --git a/invokeai/frontend/web/pnpm-lock.yaml b/invokeai/frontend/web/pnpm-lock.yaml index fe9be3d1e2..6561702558 100644 --- a/invokeai/frontend/web/pnpm-lock.yaml +++ b/invokeai/frontend/web/pnpm-lock.yaml @@ -210,9 +210,6 @@ importers: '@eslint/js': specifier: ^9.31.0 version: 9.31.0 - '@invoke-ai/prettier-config-react': - specifier: ^0.0.7 - version: 0.0.7(prettier@3.6.2) '@storybook/addon-docs': specifier: ^9.0.17 version: 9.0.17(@types/react@18.3.23)(storybook@9.0.17(@testing-library/dom@10.4.0)(prettier@3.6.2)) @@ -877,11 +874,6 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} - '@invoke-ai/prettier-config-react@0.0.7': - resolution: {integrity: sha512-vQeWzqwih116TBlIJII93L8ictj6uv7PxcSlAGNZrzG2UcaCFMsQqKCsB/qio26uihgv/EtvN6XAF96SnE0TKw==} - peerDependencies: - prettier: ^3.2.5 - '@invoke-ai/ui-library@0.0.46': resolution: {integrity: sha512-3YBuWWhRbTUHi0RZKeyvDEvweoyZmeBdUGJIhemjdAgGx6l98rAMeCs8IQH+SYjSAIhiGRGf45fQ33PDK8Jkmw==} peerDependencies: @@ -5127,10 +5119,6 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} - '@invoke-ai/prettier-config-react@0.0.7(prettier@3.6.2)': - dependencies: - prettier: 3.6.2 - '@invoke-ai/ui-library@0.0.46(@chakra-ui/system@2.6.2(@emotion/react@11.14.0(@types/react@18.3.23)(react@18.3.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@18.3.23)(react@18.3.1))(@types/react@18.3.23)(react@18.3.1))(react@18.3.1))(@fontsource-variable/inter@5.2.6)(@types/react@18.3.23)(i18next@25.3.2(typescript@5.8.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.8.3)': dependencies: '@chakra-ui/anatomy': 2.3.4