Skip to content
Snippets Groups Projects
Commit a0ab33c9 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

add eslint plugin import

parent f3a85260
No related branches found
No related tags found
1 merge request!110chore: linting
Pipeline #72455 failed
This commit is part of merge request !110. Comments created here will be created in the context of that merge request.
...@@ -6,6 +6,8 @@ module.exports = { ...@@ -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 '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: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', 'plugin:react-hooks/recommended',
'react-app',
'plugin:import/recommended',
], ],
plugins: ['@typescript-eslint', 'react', 'react-hooks'], plugins: ['@typescript-eslint', 'react', 'react-hooks'],
overrides: [ overrides: [
...@@ -48,5 +50,10 @@ module.exports = { ...@@ -48,5 +50,10 @@ module.exports = {
react: { react: {
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
}, },
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
}, },
} }
import axios, { AxiosRequestConfig } from 'axios' import axios, { AxiosRequestConfig } from 'axios'
import { DateTime } from 'luxon' import { DateTime } from 'luxon'
import { toast } from 'react-toastify' import { toast } from 'react-toastify'
import { ConsentEntity, IConsent } from '../models/consent.model'
import { import {
ConsentEntity,
ConsentPaginationEntity, ConsentPaginationEntity,
IConsent,
IConsentPagination, IConsentPagination,
} from './../models/consent.model' } from '../models/consent.model'
export class ConsentService { export class ConsentService {
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment