Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / .eslintrc.js
blob88d7a0c6b35a4fd2143e50fa1c2232fe804e2e41
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'],
13 ignorePatterns: ['.eslintrc.js'],
14 overrides: [
16 files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
17 extends: ['plugin:testing-library/react'],
18 rules: {
19 'testing-library/no-node-access': 'warn',
20 'testing-library/no-unnecessary-act': 'warn',
21 'testing-library/prefer-screen-queries': 'warn',
22 'testing-library/prefer-find-by': 'warn',
23 'testing-library/prefer-presence-queries': 'warn',
24 'testing-library/render-result-naming-convention': 'warn',
25 'testing-library/no-container': 'warn',