diff --git a/.eslintrc.js b/.eslintrc.js index 2fb8cda9..ce37830e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,5 +32,11 @@ module.exports = { 'import/no-extraneous-dependencies': 'off', // fixme revisit and refactor files when there's time to spare 'react/react-in-jsx-scope': 'off', 'react/jsx-one-expression-per-line': 'warn', + 'no-restricted-imports': ['error', { + paths: [{ + name: 'react-i18next', + message: 'Please import useTranslation from next-i18next.', + }], + }], }, } diff --git a/__tests__/components/Footer/Footer.test.tsx b/__tests__/components/Footer/Footer.test.tsx deleted file mode 100644 index ab4ff964..00000000 --- a/__tests__/components/Footer/Footer.test.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import { render, screen } from '@testing-library/react' -import Footer from '../../../components/Footer/Footer' - -describe('Footer component', () => { - it('should render without crashing', () => { - render( -