From 607cd5d1e0c109556ff9f425bf39c741cd409c75 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Tue, 1 Oct 2024 05:44:24 +0200 Subject: [PATCH] feat: install, configure and run prettier-plugin-tailwindcss --- .eslintrc.cjs | 1 + .prettierrc.json | 3 +- .../table/data-table-filter-custom.tsx | 8 +- .../ui/custom/custom-dropdown-filter.tsx | 8 +- package-lock.json | 90 ++++++++++++++++++- package.json | 2 + 6 files changed, 99 insertions(+), 13 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c9f6d992bf..04f90c81d7 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,6 +10,7 @@ module.exports = { "plugin:@typescript-eslint/recommended", "plugin:security/recommended-legacy", "plugin:jsx-a11y/recommended", + "eslint-config-prettier", "prettier", ], parserOptions: { diff --git a/.prettierrc.json b/.prettierrc.json index 15d19325bb..0cbbafa6cc 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -5,5 +5,6 @@ "tabWidth": 2, "useTabs": false, "semi": true, - "printWidth": 80 + "printWidth": 80, + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/components/providers/table/data-table-filter-custom.tsx b/components/providers/table/data-table-filter-custom.tsx index b43b55f3f4..5dc2f94dc2 100644 --- a/components/providers/table/data-table-filter-custom.tsx +++ b/components/providers/table/data-table-filter-custom.tsx @@ -36,7 +36,7 @@ export const DataTableFilterCustom = ({ ); return ( -
+
-
+
{filters.map((filter) => ( = ({ } }, [groupSelected, allFilterKeys]); return ( -
+