Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlbrjc committed Dec 18, 2024
1 parent db03c2c commit efe57a9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
3 changes: 1 addition & 2 deletions components/ConfirmationUpdateRdvModal.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { useRef } from 'react'

import IconComponent, { IconName } from './ui/IconComponent'

import Modal, { ModalHandles } from 'components/Modal'
import Button, { ButtonStyle } from 'components/ui/Button/Button'
import IconComponent, { IconName } from 'components/ui/IconComponent'

interface ConfirmationUpdateRdvModalProps {
onConfirmation: () => void
Expand Down
7 changes: 3 additions & 4 deletions components/jeune/BeneficiairesMultiselectAutocomplete.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { ReactElement, useEffect, useRef, useState } from 'react'

import { ButtonStyle } from '../ui/Button/Button'
import ButtonLink from '../ui/Button/ButtonLink'

import { ButtonStyle } from 'components/ui/Button/Button'
import ButtonLink from 'components/ui/Button/ButtonLink'
import { InputError } from 'components/ui/Form/InputError'
import Label from 'components/ui/Form/Label'
import Multiselection from 'components/ui/Form/Multiselection'
Expand Down Expand Up @@ -307,7 +306,7 @@ export default function BeneficiairesMultiselectAutocomplete({
<p
aria-label={`${typeSelection} sélectionnés (${countBeneficiairesUniques()})`}
id='selected-beneficiaires--title'
className='text-base-medium mb-2 flex mb-4 justify-between items-center'
className='text-base-medium flex mb-4 justify-between items-center'
>
{typeSelection} ({countBeneficiairesUniques()})
{lienExport && trackExport && (
Expand Down
3 changes: 1 addition & 2 deletions components/jeune/TableauBeneficiaires.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { DateTime } from 'luxon'
import dynamic from 'next/dynamic'
import React, { ForwardedRef, forwardRef, useEffect, useState } from 'react'

import SortIcon from '../ui/SortIcon'

import EmptyState from 'components/EmptyState'
import { IllustrationName } from 'components/ui/IllustrationComponent'
import SortIcon from 'components/ui/SortIcon'
import Pagination from 'components/ui/Table/Pagination'
import Table from 'components/ui/Table/Table'
import { BeneficiaireAvecInfosComplementaires } from 'interfaces/beneficiaire'
Expand Down
3 changes: 1 addition & 2 deletions components/rdv/OngletAgendaEtablissement.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { DateTime } from 'luxon'
import React, { useEffect, useRef, useState } from 'react'

import ResettableTextInput from '../ui/Form/ResettableTextInput'

import EmptyState from 'components/EmptyState'
import { AnimationCollectiveRow } from 'components/rdv/AnimationCollectiveRow'
import FiltresStatutAnimationsCollectives, {
FiltresHandles,
} from 'components/rdv/FiltresStatutAnimationsCollectives'
import ResettableTextInput from 'components/ui/Form/ResettableTextInput'
import IconComponent, { IconName } from 'components/ui/IconComponent'
import { IllustrationName } from 'components/ui/IllustrationComponent'
import { SelecteurPeriode } from 'components/ui/SelecteurPeriode'
Expand Down
3 changes: 1 addition & 2 deletions components/ui/Navigation/Tab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import IconComponent, { IconName } from '../IconComponent'

import IconComponent, { IconName } from 'components/ui/IconComponent'
import { Badge } from 'components/ui/Indicateurs/Badge'

export interface TabProps {
Expand Down
5 changes: 2 additions & 3 deletions components/ui/SelecteurPeriode.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { DateTime } from 'luxon'
import React, { ReactElement, useEffect, useRef, useState } from 'react'

import Button, { ButtonStyle } from './Button/Button'
import IconComponent, { IconName } from './IconComponent'

import Button, { ButtonStyle } from 'components/ui/Button/Button'
import IconComponent, { IconName } from 'components/ui/IconComponent'
import { toLongMonthDate, toShortDate } from 'utils/date'
import { useDebounce } from 'utils/hooks/useDebounce'

Expand Down
9 changes: 8 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ const eslintConfig = [
},

'newlines-between': 'always',
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
pathGroupsExcludedImportTypes: ['builtin'],
},
],
Expand Down

0 comments on commit efe57a9

Please sign in to comment.