Merge branch 'renovate/all-minor-patch' into 'main'
[ProtonMail-WebClient.git] / packages / docs-core / .eslintrc.js
blobd0efbd66503cd17a0af1e687524900a43f4701ad
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 '@typescript-eslint/lines-between-class-members': 'off',
15 '@typescript-eslint/naming-convention': 'off',
16 '@typescript-eslint/no-unused-vars': 'off',
17 '@typescript-eslint/no-use-before-define': 'off',
18 'no-console': [
19 'warn',
21 allow: ['warn', 'error', 'trace'],
24 'no-fallthrough': 'error',
25 'max-classes-per-file': 'off',
26 '@typescript-eslint/no-use-before-define': [
27 'error',
29 functions: false,
30 classes: false,
34 overrides: [
36 files: ['*.test.ts'],
37 rules: {
38 'max-classes-per-file': 'off',
39 'class-methods-use-this': 'off',
43 ignorePatterns: ['.eslintrc.js'],