From 0d20ba5ad230a57213c7c4bae0754f4720500109 Mon Sep 17 00:00:00 2001 From: mourabraz Date: Fri, 16 Sep 2022 15:41:23 +0100 Subject: [PATCH 1/2] fix: disable import order rule --- frontend/src/components/Board/Settings/index.tsx | 1 + frontend/src/components/Primitives/Checkbox.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/components/Board/Settings/index.tsx b/frontend/src/components/Board/Settings/index.tsx index fac8ba4c7..9c6d14863 100644 --- a/frontend/src/components/Board/Settings/index.tsx +++ b/frontend/src/components/Board/Settings/index.tsx @@ -1,3 +1,4 @@ +/* eslint-disable simple-import-sort/imports */ import { joiResolver } from '@hookform/resolvers/joi'; import { Accordion } from '@radix-ui/react-accordion'; import { Dialog, DialogClose, DialogTrigger } from '@radix-ui/react-dialog'; diff --git a/frontend/src/components/Primitives/Checkbox.tsx b/frontend/src/components/Primitives/Checkbox.tsx index ca72cdf2d..03dfcc201 100644 --- a/frontend/src/components/Primitives/Checkbox.tsx +++ b/frontend/src/components/Primitives/Checkbox.tsx @@ -1,3 +1,4 @@ +/* eslint-disable simple-import-sort/imports */ import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { styled } from '@stitches/react'; import React, { Dispatch, useState } from 'react'; From 017d740ad059d75c5de16220482d0e1e4efe98a9 Mon Sep 17 00:00:00 2001 From: Francisco Morgado Date: Fri, 16 Sep 2022 15:56:20 +0100 Subject: [PATCH 2/2] fix: eslint import erros --- frontend/src/components/Board/Settings/index.tsx | 7 +++---- frontend/src/components/Primitives/Checkbox.tsx | 5 ++--- frontend/src/pages/boards/new.tsx | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/Board/Settings/index.tsx b/frontend/src/components/Board/Settings/index.tsx index 9c6d14863..ff373ac5b 100644 --- a/frontend/src/components/Board/Settings/index.tsx +++ b/frontend/src/components/Board/Settings/index.tsx @@ -1,11 +1,10 @@ -/* eslint-disable simple-import-sort/imports */ +import { Dispatch, SetStateAction, useEffect, useMemo, useRef, useState } from 'react'; +import { FormProvider, useForm } from 'react-hook-form'; +import { useRecoilValue } from 'recoil'; import { joiResolver } from '@hookform/resolvers/joi'; import { Accordion } from '@radix-ui/react-accordion'; import { Dialog, DialogClose, DialogTrigger } from '@radix-ui/react-dialog'; import { deepClone } from 'fast-json-patch'; -import { Dispatch, SetStateAction, useEffect, useMemo, useRef, useState } from 'react'; -import { FormProvider, useForm } from 'react-hook-form'; -import { useRecoilValue } from 'recoil'; import Icon from 'components/icons/Icon'; import Avatar from 'components/Primitives/Avatar'; diff --git a/frontend/src/components/Primitives/Checkbox.tsx b/frontend/src/components/Primitives/Checkbox.tsx index 03dfcc201..108851ce4 100644 --- a/frontend/src/components/Primitives/Checkbox.tsx +++ b/frontend/src/components/Primitives/Checkbox.tsx @@ -1,8 +1,7 @@ -/* eslint-disable simple-import-sort/imports */ -import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; -import { styled } from '@stitches/react'; import React, { Dispatch, useState } from 'react'; import { useFormContext } from 'react-hook-form'; +import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; +import { styled } from '@stitches/react'; import Icon from 'components/icons/Icon'; import Flex from './Flex'; diff --git a/frontend/src/pages/boards/new.tsx b/frontend/src/pages/boards/new.tsx index 4bfcf5084..a3c1182b7 100644 --- a/frontend/src/pages/boards/new.tsx +++ b/frontend/src/pages/boards/new.tsx @@ -1,10 +1,10 @@ -import { joiResolver } from '@hookform/resolvers/joi'; -import { GetServerSideProps, GetServerSidePropsContext, NextPage } from 'next'; -import { useRouter } from 'next/router'; import { useCallback, useEffect } from 'react'; import { FormProvider, useForm, useWatch } from 'react-hook-form'; import { dehydrate, QueryClient } from 'react-query'; +import { GetServerSideProps, GetServerSidePropsContext, NextPage } from 'next'; +import { useRouter } from 'next/router'; import { useRecoilValue, useResetRecoilState, useSetRecoilState } from 'recoil'; +import { joiResolver } from '@hookform/resolvers/joi'; import { ButtonsContainer,