Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / components / .eslintrc.js
blobd65d0b3199403db5c20e89fcfa4d073b70b43f21
1 module.exports = {
2 extends: ['@proton/eslint-config-proton'],
3 parser: '@typescript-eslint/parser',
4 parserOptions: {
5 tsconfigRootDir: __dirname,
6 project: './tsconfig.json',
7 },
8 rules: {
9 'react/button-has-type': ['warn'],
10 'react/forbid-prop-types': ['warn'],
11 'react/no-array-index-key': ['warn'],
12 'import/no-internal-modules': [
13 'error',
15 forbid: ['@proton/components', '@proton/components/index'],
18 'import/no-cycle': ['error', { maxDepth: 1 }],
20 ignorePatterns: ['.eslintrc.js'],
21 overrides: [
23 files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
24 extends: ['plugin:testing-library/react'],
25 rules: {
26 'testing-library/no-node-access': 'warn',
27 'testing-library/no-unnecessary-act': 'warn',
28 'testing-library/prefer-screen-queries': 'warn',
29 'testing-library/prefer-find-by': 'warn',
30 'testing-library/prefer-presence-queries': 'warn',
31 'testing-library/render-result-naming-convention': 'warn',
32 'testing-library/no-container': 'warn',