Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ NETWORK.SLOW_DOWNLINK_THRESHOLD; // Network performance checks
- Tabs for indentation (indent: ['error', 'tab'])
- Console logs allowed (`no-console: off`)
- Unused vars with `_` prefix ignored
- React hooks exhaustive deps enforced

### TypeScript

Expand Down
14 changes: 0 additions & 14 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const globals = require('globals');
const react = require('eslint-plugin-react');
const reactHooks = require('eslint-plugin-react-hooks');

module.exports = [
{
Expand Down Expand Up @@ -32,10 +30,6 @@ module.exports = [
project: './tsconfig.json',
},
},
plugins: {
react,
'react-hooks': reactHooks,
},
settings: {
react: {
version: 'detect',
Expand All @@ -52,14 +46,6 @@ module.exports = [
'no-restricted-syntax': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
radix: 'off',
'react-hooks/rules-of-hooks': 'error',
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.tsx', '.jsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/no-unknown-property': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': ['error', { ignoreFunctionalComponents: true }],
'react/static-property-placement': 'off',
semi: ['error', 'always'],
},
},
Expand Down
22 changes: 10 additions & 12 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
preset: 'ts-jest',
const nextJest = require('next/jest');

const createJestConfig = nextJest({
dir: './',
});

const customJestConfig = {
moduleNameMapper: {
'^@$': '<rootDir>/src/index.ts',
'^@/(.*)$': '<rootDir>/src/$1',
Expand All @@ -21,6 +26,7 @@ module.exports = {
'^@styles/(.*)$': '<rootDir>/src/styles/$1',
'^@util$': '<rootDir>/src/util/index.ts',
'^@util/(.*)$': '<rootDir>/src/util/$1',
'^.+\\.(svg)$': '<rootDir>/jest/svg-mock.js',
'\\.(css|less|scss|sass)$': 'jest-transform-stub',
'\\.(svg|png|jpg|jpeg|gif|webp)$': '<rootDir>/jest/svg-mock.js',
},
Expand All @@ -29,14 +35,6 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testPathIgnorePatterns: ['/node_modules/', '/cypress/'],
setupFilesAfterEnv: ['<rootDir>/jest/setup.ts'],
transform: {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: {
jsx: 'react-jsx',
},
},
],
},
};

module.exports = createJestConfig(customJestConfig);
Loading
Loading