diff --git a/.eslintrc.js b/.eslintrc.js index d7dcf07f848540eb661afa2c37f5fb32e294f9c6..1a4985d5f5219398a2a456c9daaebc0c92e5bf31 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,6 +6,8 @@ module.exports = { 'prettier', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. 'plugin:react-hooks/recommended', + 'react-app', + 'plugin:import/recommended', ], plugins: ['@typescript-eslint', 'react', 'react-hooks'], overrides: [ @@ -48,5 +50,10 @@ module.exports = { react: { version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use }, + 'import/resolver': { + node: { + extensions: ['.js', '.jsx', '.ts', '.tsx'], + }, + }, }, } diff --git a/src/services/consent.service.ts b/src/services/consent.service.ts index ba6a8748827fbac23178561d4b837909a5b0aaf2..b68d040dc98d0a9d7daf56fe327bf644c8fed73d 100644 --- a/src/services/consent.service.ts +++ b/src/services/consent.service.ts @@ -1,11 +1,12 @@ import axios, { AxiosRequestConfig } from 'axios' import { DateTime } from 'luxon' import { toast } from 'react-toastify' -import { ConsentEntity, IConsent } from '../models/consent.model' import { + ConsentEntity, ConsentPaginationEntity, + IConsent, IConsentPagination, -} from './../models/consent.model' +} from '../models/consent.model' export class ConsentService { /**