Skip to content

Commit

Permalink
Update dependency eslint-plugin-import to v2.29.0 (#421)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Guillaume Paris <[email protected]>
  • Loading branch information
renovate[bot] and guillaumejparis authored Dec 12, 2023
1 parent 40d478d commit 388911c
Show file tree
Hide file tree
Showing 49 changed files with 68 additions and 95 deletions.
2 changes: 1 addition & 1 deletion openex-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"eslint-config-prettier": "9.0.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-custom-rules": "link:packages/eslint-plugin-custom-rules",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-prettier": "5.0.1",
"eslint-plugin-react": "7.33.2",
"express": "4.18.2",
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/actions/Variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
postReferential,
delReferential,
} from '../utils/Action';
import { Exercise, Variable, VariableInput } from '../utils/api-types';
import type { Exercise, Variable, VariableInput } from '../utils/api-types';

export const addVariable = (exerciseId: Exercise['exercise_id'], data: VariableInput) => (dispatch: Dispatch) => {
const uri = `/api/exercises/${exerciseId}/variables`;
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/actions/helper.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
Audience,
Exercise,
LessonsTemplate,
Expand Down
4 changes: 2 additions & 2 deletions openex-front/src/admin/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import { useHelper } from '../store';
import Challenges from './components/challenges/Challenges';
import LessonsTemplates from './components/lessons/LessonsTemplates';
import IndexLessonsTemplate from './components/lessons/Index';
import { Theme } from '../components/Theme';
import { LoggedHelper } from '../actions/helper';
import type { Theme } from '../components/Theme';
import type { LoggedHelper } from '../actions/helper';

const useStyles = makeStyles<Theme>((theme) => ({
toolbar: theme.mixins.toolbar,
Expand Down
4 changes: 2 additions & 2 deletions openex-front/src/admin/components/exercises/AnimationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from '@mui/icons-material';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Exercise } from '../../../utils/api-types';
import { Theme } from '../../../components/Theme';
import type { Exercise } from '../../../utils/api-types';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
drawer: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
import { NewspaperVariantMultipleOutline } from 'mdi-material-ui';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Exercise } from '../../../utils/api-types';
import { Theme } from '../../../components/Theme';
import type { Exercise } from '../../../utils/api-types';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles((theme: Theme) => ({
drawer: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { updateExerciseStartDate } from '../../../actions/Exercise';
import { useFormatter } from '../../../components/i18n';
import ExerciseDateForm from './ExerciseDateForm';
import { isExerciseReadOnly } from '../../../utils/Exercise';
import { Exercise } from '../../../utils/api-types';
import type { Exercise } from '../../../utils/api-types';
import Transition from '../../../components/common/Transition';
import { useAppDispatch } from '../../../utils/hooks';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import ExerciseForm from './ExerciseForm';
import { deleteExercise, updateExercise } from '../../../actions/Exercise';
import { isExerciseReadOnly } from '../../../utils/Exercise';
import Transition from '../../../components/common/Transition';
import { Exercise, ExerciseUpdateInput } from '../../../utils/api-types';
import type { Exercise, ExerciseUpdateInput } from '../../../utils/api-types';
import { useAppDispatch } from '../../../utils/hooks';

const useStyles = makeStyles(() => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useNavigate } from 'react-router-dom';
import { useFormatter } from '../../../components/i18n';
import { importingExercise } from '../../../actions/Exercise';
import { useHelper } from '../../../store';
import { UsersHelper } from '../../../actions/helper';
import type { UsersHelper } from '../../../actions/helper';
import { useAppDispatch } from '../../../utils/hooks';

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/exercises/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import useDataLoader from '../../../utils/ServerSideEvent';
import { useHelper } from '../../../store';
import Report from './reports/Report';
import Variables from './variables/Variables';
import { ExercicesHelper } from '../../../actions/helper';
import type { ExercicesHelper } from '../../../actions/helper';
import { useAppDispatch } from '../../../utils/hooks';

const useStyles = makeStyles(() => ({
Expand Down
4 changes: 2 additions & 2 deletions openex-front/src/admin/components/exercises/ResultsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
} from '@mui/icons-material';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Exercise } from '../../../utils/api-types';
import { Theme } from '../../../components/Theme';
import type { Exercise } from '../../../utils/api-types';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
drawer: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import ComcheckForm from './ComcheckForm';
import DryrunForm from './DryrunForm';
import { resolveUserName } from '../../../../utils/String';
import { isExerciseReadOnly } from '../../../../utils/Exercise';
import { Theme } from '../../../../components/Theme';
import type { Theme } from '../../../../components/Theme';
import { useAppDispatch } from '../../../../utils/hooks';
import { ComcheckInput, Exercise } from '../../../../utils/api-types';
import type { ComcheckInput, Exercise } from '../../../../utils/api-types';
import { addComcheck } from '../../../../actions/Comcheck';
import { addDryrun } from '../../../../actions/Dryrun';
import { useFormatter } from '../../../../components/i18n';
import Transition from '../../../../components/common/Transition';
import { useHelper } from '../../../../store';
import {
import type {
AudiencesHelper,
ExercicesHelper,
UsersHelper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useFormatter } from '../../../../components/i18n';
import { deleteReport, updateReport } from '../../../../actions/Report';
import Transition from '../../../../components/common/Transition';
import { useAppDispatch } from '../../../../utils/hooks';
import {
import type {
Exercise,
Report,
ReportUpdateInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { TabContext, TabList, TabPanel } from '@mui/lab';
import { CopyAllOutlined } from '@mui/icons-material';
import Transition from '../../../../components/common/Transition';
import { useFormatter } from '../../../../components/i18n';
import { Contract, User, Variable } from '../../../../utils/api-types';
import type { Contract, User, Variable } from '../../../../utils/api-types';
import useDataLoader from '../../../../utils/ServerSideEvent';
import { fetchVariables, VariablesHelper } from '../../../../actions/Variable';
import { useHelper } from '../../../../store';
import { useAppDispatch } from '../../../../utils/hooks';
import { UsersHelper } from '../../../../actions/helper';
import type { UsersHelper } from '../../../../actions/helper';
import { copyToClipboard } from '../../../../utils/CopyToClipboard';

interface VariableChildItemProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useFormatter } from '../../../../components/i18n';
import VariableForm from './VariableForm';
import { addVariable } from '../../../../actions/Variable';
import { useAppDispatch } from '../../../../utils/hooks';
import { VariableInput } from '../../../../utils/api-types';
import type { VariableInput } from '../../../../utils/api-types';
import Transition from '../../../../components/common/Transition';

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
import MuiTextField from '@mui/material/TextField';
import { z } from 'zod';
import { useFormatter } from '../../../../components/i18n';
import { VariableInput } from '../../../../utils/api-types';
import type { VariableInput } from '../../../../utils/api-types';
import { zodImplement } from '../../../../utils/Zod';

interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Button from '@mui/material/Button';
import DialogTitle from '@mui/material/DialogTitle';
import { isExerciseReadOnly } from '../../../../utils/Exercise';
import { useFormatter } from '../../../../components/i18n';
import { Exercise, Variable, VariableInput } from '../../../../utils/api-types';
import type { Exercise, Variable, VariableInput } from '../../../../utils/api-types';
import VariableForm from './VariableForm';
import { deleteVariable, updateVariable } from '../../../../actions/Variable';
import { useAppDispatch } from '../../../../utils/hooks';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import useSearchAnFilter from '../../../../utils/SortingFiltering';
import SearchFilter from '../../../../components/SearchFilter';
import DefinitionMenu from '../DefinitionMenu';
import { useHelper } from '../../../../store';
import { Exercise, Variable } from '../../../../utils/api-types';
import type { Exercise, Variable } from '../../../../utils/api-types';
import { usePermissions } from '../../../../utils/Exercise';
import CreateVariable from './CreateVariable';
import VariablePopover from './VariablePopover';
import useDataLoader from '../../../../utils/ServerSideEvent';
import { fetchVariables, VariablesHelper } from '../../../../actions/Variable';
import { useAppDispatch } from '../../../../utils/hooks';
import { ExercicesHelper } from '../../../../actions/helper';
import type { ExercicesHelper } from '../../../../actions/helper';

const useStyles = makeStyles(() => ({
container: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/lessons/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import useDataLoader from '../../../utils/ServerSideEvent';
import { useHelper } from '../../../store';
import { fetchLessonsTemplates } from '../../../actions/Lessons';
import { useAppDispatch } from '../../../utils/hooks';
import { LessonsTemplatesHelper } from '../../../actions/helper';
import type { LessonsTemplatesHelper } from '../../../actions/helper';

const useStyles = makeStyles(() => ({
root: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
updateLessonsTemplate,
} from '../../../actions/Lessons';
import Transition from '../../../components/common/Transition';
import {
import type {
LessonsTemplate,
LessonsTemplateUpdateInput,
} from '../../../utils/api-types';
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/medias/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { errorWrapper } from '../../../components/Error';
import useDataLoader from '../../../utils/ServerSideEvent';
import { useHelper } from '../../../store';
import { useAppDispatch } from '../../../utils/hooks';
import { MediasHelper } from '../../../actions/helper';
import type { MediasHelper } from '../../../actions/helper';

const useStyles = makeStyles(() => ({
root: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/medias/MediaPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { updateMedia } from '../../../actions/Media';
import MediaForm from './MediaForm';
import { useAppDispatch } from '../../../utils/hooks';
import Transition from '../../../components/common/Transition';
import { Media, MediaUpdateInput } from '../../../utils/api-types';
import type { Media, MediaUpdateInput } from '../../../utils/api-types';

const useStyles = makeStyles(() => ({
button: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/medias/TopMenuMedias.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
button: {
Expand Down
4 changes: 2 additions & 2 deletions openex-front/src/admin/components/nav/LeftBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import { createStyles, makeStyles, styled, useTheme } from '@mui/styles';
import { MESSAGING$ } from '../../../utils/Environment';
import { useFormatter } from '../../../components/i18n';
import { useHelper } from '../../../store';
import { UsersHelper } from '../../../actions/helper';
import { Theme } from '../../../components/Theme';
import type { UsersHelper } from '../../../actions/helper';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => createStyles({
drawerPaper: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import TopMenuLessons from './TopMenuLessons';
import ImportUploader from '../exercises/ImportUploader';
import TopMenuMedia from './TopMenuMedia';
import TopMenuProfile from './TopMenuProfile';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';
import { useAppDispatch } from '../../../utils/hooks';
import { MESSAGING$ } from '../../../utils/Environment';

Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
button: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuDocuments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
button: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuExercise.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useLocation, useParams } from 'react-router-dom';
import Button from '@mui/material/Button';
import { RowingOutlined, ArrowForwardIosOutlined } from '@mui/icons-material';
import { makeStyles } from '@mui/styles';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';
import { useFormatter } from '../../../components/i18n';

const useStyles = makeStyles<Theme>((theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuExercises.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';
import { useFormatter } from '../../../components/i18n';

const useStyles = makeStyles<Theme>((theme) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';
import { useFormatter } from '../../../components/i18n';

const useStyles = makeStyles<Theme>((theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NewspaperVariantMultipleOutline } from 'mdi-material-ui';
import { ArrowForwardIosOutlined } from '@mui/icons-material';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
buttonHome: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
button: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuPlayers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { useFormatter } from '../../../components/i18n';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';

const useStyles = makeStyles<Theme>((theme) => ({
button: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/nav/TopMenuSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import Button from '@mui/material/Button';
import { makeStyles } from '@mui/styles';
import { Theme } from '../../../components/Theme';
import type { Theme } from '../../../components/Theme';
import { useFormatter } from '../../../components/i18n';

const useStyles = makeStyles<Theme>((theme) => ({
Expand Down
6 changes: 3 additions & 3 deletions openex-front/src/admin/components/players/CreatePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import PlayerForm from './PlayerForm';
import { useFormatter } from '../../../components/i18n';
import Dialog from '../../../components/common/Dialog';
import { useAppDispatch } from '../../../utils/hooks';
import { Theme } from '../../../components/Theme';
import { CreatePlayerInput } from '../../../utils/api-types';
import type { Theme } from '../../../components/Theme';
import type { CreatePlayerInput } from '../../../utils/api-types';
import { Option } from '../../../utils/Option';
import { PlayerInputForm } from './Player';
import type { PlayerInputForm } from './Player';

const useStyles = makeStyles((theme: Theme) => ({
createButton: {
Expand Down
2 changes: 1 addition & 1 deletion openex-front/src/admin/components/players/Player.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UpdatePlayerInput, User } from '../../../utils/api-types';
import type { UpdatePlayerInput, User } from '../../../utils/api-types';
import { Option } from '../../../utils/Option';

export type PlayerInputForm = Omit<
Expand Down
4 changes: 2 additions & 2 deletions openex-front/src/admin/components/players/PlayerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { useFormatter } from '../../../components/i18n';
import TagField from '../../../components/TagField';
import OrganizationField from '../../../components/OrganizationField';
import CountryField from '../../../components/CountryField';
import { Theme } from '../../../components/Theme';
import { PlayerInputForm } from './Player';
import type { Theme } from '../../../components/Theme';
import type { PlayerInputForm } from './Player';
import { schemaValidator } from '../../../utils/Zod';

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
6 changes: 3 additions & 3 deletions openex-front/src/admin/components/players/PlayerPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ import { useFormatter } from '../../../components/i18n';
import { isExerciseReadOnly } from '../../../utils/Exercise';
import { useAppDispatch } from '../../../utils/hooks';
import Transition from '../../../components/common/Transition';
import { UpdatePlayerInput } from '../../../utils/api-types';
import type { UpdatePlayerInput } from '../../../utils/api-types';
import {
countryOption,
Option,
organizationOption,
tagOptions,
} from '../../../utils/Option';
import { useHelper } from '../../../store';
import {
import type {
ExercicesHelper,
OrganizationsHelper,
TagsHelper,
UsersHelper,
} from '../../../actions/helper';
import { PlayerInputForm, UserStore } from './Player';
import type { PlayerInputForm, UserStore } from './Player';

interface PlayerPopoverProps {
user: UserStore;
Expand Down
Loading

0 comments on commit 388911c

Please sign in to comment.