Skip to content

Commit

Permalink
Fix Import order
Browse files Browse the repository at this point in the history
  • Loading branch information
charlinedev committed Oct 4, 2023
1 parent c18e28c commit 19e2d39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/components/WelcomeModal/FirstPhase.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react';
import { useSnackbar } from 'notistack';

Check failure on line 2 in src/components/WelcomeModal/FirstPhase.tsx

View workflow job for this annotation

GitHub Actions / lint

`notistack` import should occur before import of `react`

import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft';
import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight';
import { Checkbox } from '@mui/material';
import Button from '@mui/material/Button';
import MobileStepper from '@mui/material/MobileStepper';
import { useSnackbar } from 'notistack';
import React from 'react';

import { CGU } from 'src/components/CGU';
import { Flag } from 'src/components/Flag';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';

Check failure on line 1 in src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups

Check failure on line 1 in src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx

View workflow job for this annotation

GitHub Actions / lint

`react` import should occur after import of `html-to-draftjs`
import { Divider } from '@mui/material';

Check failure on line 2 in src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx

View workflow job for this annotation

GitHub Actions / lint

`@mui/material` import should occur after import of `html-to-draftjs`
import Paper from '@mui/material/Paper';

Check failure on line 3 in src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups

Check failure on line 3 in src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx

View workflow job for this annotation

GitHub Actions / lint

`@mui/material/Paper` import should occur after import of `html-to-draftjs`
import classnames from 'classnames';
Expand All @@ -17,7 +18,6 @@ import {
toggleCustomInlineStyle,
} from 'draftjs-utils';
import htmlToDraft from 'html-to-draftjs';
import React from 'react';

import { ColorPicker } from './toolbar/ColorPicker';
import { EmojiPicker } from './toolbar/EmojiPicker';
Expand Down
5 changes: 3 additions & 2 deletions src/contexts/activityContext.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Card, CircularProgress } from '@mui/material';
import { useRouter } from 'next/router';
import React from 'react';
import { useQueryClient } from 'react-query';
import { useRouter } from 'next/router';

Check failure on line 3 in src/contexts/activityContext.tsx

View workflow job for this annotation

GitHub Actions / lint

`next/router` import should occur before import of `react`

import { Card, CircularProgress } from '@mui/material';

import { UserContext } from './userContext';
import { VillageContext } from './villageContext';
Expand Down
5 changes: 3 additions & 2 deletions src/pages/login.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Backdrop, Button, CircularProgress, Link, Tooltip } from '@mui/material';
import React from 'react';

Check failure on line 1 in src/pages/login.tsx

View workflow job for this annotation

GitHub Actions / lint

`react` import should occur after import of `query-string`
import { useRouter } from 'next/router';
import qs from 'query-string';
import React from 'react';

import { Backdrop, Button, CircularProgress, Link, Tooltip } from '@mui/material';

import { KeepRatio } from '../components/KeepRatio';
import { isRedirectValid } from '../components/accueil/NewHome';
Expand Down

0 comments on commit 19e2d39

Please sign in to comment.