Remove client-side isLoggedIn value
[ProtonMail-WebClient.git] / packages / drive-store / .eslintrc.js
blob18bf8bd915c1c3149dfbc091f77a9fba8df43ebb
1 const isFixMode = process.argv.includes('--fix');
2 module.exports = {
3     extends: ['@proton/eslint-config-proton'],
4     parser: '@typescript-eslint/parser',
5     parserOptions: {
6         tsconfigRootDir: __dirname,
7         project: './tsconfig.json',
8     },
9     rules: {
10         'react/prop-types': 'off',
11         ...(!isFixMode && {
12             'react-hooks/exhaustive-deps': 'warn',
13         }),
14         'no-console': [
15             'error',
16             {
17                 allow: ['warn', 'error'],
18             },
19         ],
20         'max-classes-per-file': 'off',
21         '@typescript-eslint/consistent-type-imports': 'warn',
22         '@typescript-eslint/no-use-before-define': [
23             'error',
24             {
25                 functions: false,
26                 classes: false,
27             },
28         ],
29     },
30     overrides: [
31         {
32             files: ['*.test.ts'],
33             rules: {
34                 'max-classes-per-file': 'off',
35                 'class-methods-use-this': 'off',
36             },
37         },
38     ],
39     ignorePatterns: ['.eslintrc.js', 'assets/sandbox.js', 'scripts'],