2022-04-12 21:00:59 +00:00
|
|
|
module.exports = {
|
2023-04-15 13:38:11 +00:00
|
|
|
plugins: ['@typescript-eslint', 'import', 'react', 'jest', 'jsdoc', 'jsx-a11y', 'testing-library', 'jest-dom'],
|
2022-12-06 14:21:47 +00:00
|
|
|
extends: [
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'next/core-web-vitals',
|
|
|
|
'next',
|
|
|
|
'airbnb',
|
|
|
|
'airbnb-typescript',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:import/typescript',
|
|
|
|
'prettier',
|
|
|
|
'plugin:react/recommended',
|
2023-02-02 07:46:29 +00:00
|
|
|
'plugin:jsdoc/recommended',
|
2023-04-08 11:19:49 +00:00
|
|
|
'plugin:jsx-a11y/recommended',
|
2022-12-06 14:21:47 +00:00
|
|
|
],
|
2022-04-12 21:00:59 +00:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 'latest',
|
|
|
|
sourceType: 'module',
|
|
|
|
project: './tsconfig.json',
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'no-restricted-exports': 0,
|
2023-04-15 13:51:59 +00:00
|
|
|
'no-redeclare': 0, // already handled by @typescript-eslint/no-redeclare
|
2022-12-06 14:21:47 +00:00
|
|
|
'react/display-name': 0,
|
|
|
|
'react/prop-types': 0,
|
|
|
|
'react/function-component-definition': 0,
|
|
|
|
'react/require-default-props': 0,
|
|
|
|
'import/prefer-default-export': 0,
|
|
|
|
'react/jsx-props-no-spreading': 0,
|
|
|
|
'react/no-unused-prop-types': 0,
|
|
|
|
'react/button-has-type': 0,
|
2023-04-25 18:15:14 +00:00
|
|
|
'import/no-extraneous-dependencies': [
|
|
|
|
'error',
|
2023-06-23 06:16:26 +00:00
|
|
|
{
|
|
|
|
devDependencies: [
|
|
|
|
'esbuild.js',
|
|
|
|
'e2e/**',
|
|
|
|
'**/*.test.{ts,tsx}',
|
|
|
|
'**/*.spec.{ts,tsx}',
|
|
|
|
'**/*.factory.{ts,tsx}',
|
|
|
|
'**/mocks/**',
|
|
|
|
'tests/**',
|
|
|
|
'**/*.d.ts',
|
|
|
|
'**/*.workspace.ts',
|
|
|
|
'**/*.setup.{ts,js}',
|
|
|
|
],
|
|
|
|
},
|
2023-04-25 18:15:14 +00:00
|
|
|
],
|
2022-12-26 03:52:48 +00:00
|
|
|
'no-underscore-dangle': 0,
|
2023-02-21 21:59:06 +00:00
|
|
|
'arrow-body-style': 0,
|
2023-03-28 19:26:40 +00:00
|
|
|
'class-methods-use-this': 0,
|
2023-04-20 06:58:05 +00:00
|
|
|
'jsdoc/require-returns': 0,
|
2023-05-21 06:25:26 +00:00
|
|
|
'jsdoc/tag-lines': 0,
|
2023-05-06 11:20:44 +00:00
|
|
|
'import/extensions': [
|
|
|
|
'error',
|
|
|
|
'ignorePackages',
|
|
|
|
{
|
|
|
|
'': 'never',
|
|
|
|
js: 'never',
|
|
|
|
jsx: 'never',
|
|
|
|
ts: 'never',
|
|
|
|
tsx: 'never',
|
|
|
|
},
|
|
|
|
],
|
2022-04-12 21:00:59 +00:00
|
|
|
},
|
2023-05-05 06:45:34 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.test.ts', '*.test.tsx'],
|
|
|
|
extends: ['plugin:jest-dom/recommended', 'plugin:testing-library/react'],
|
|
|
|
},
|
|
|
|
],
|
2022-08-09 18:44:07 +00:00
|
|
|
globals: {
|
|
|
|
JSX: true,
|
2022-12-26 03:52:48 +00:00
|
|
|
NodeJS: true,
|
2022-08-09 18:44:07 +00:00
|
|
|
},
|
2022-12-05 07:45:51 +00:00
|
|
|
env: {
|
|
|
|
'jest/globals': true,
|
|
|
|
},
|
2022-04-12 21:00:59 +00:00
|
|
|
};
|