-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
73 lines (71 loc) · 2.53 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
const sheriff = require('eslint-config-sheriff');
const { defineFlatConfig } = require('eslint-define-config');
const sheriffOptions = {
react: true,
lodash: false,
next: false,
playwright: false,
jest: false,
vitest: false,
};
module.exports = defineFlatConfig([
...sheriff(sheriffOptions),
{
files: ['src/**'],
ignores: ['electron/**'],
rules: {
'react/destructuring-assignment': 0,
'@typescript-eslint/consistent-type-imports': 0,
'func-style': 0,
curly: 0,
'no-implicit-coercion': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 0,
'storybook/default-exports': 0,
'jsx-a11y/click-events-have-key-events': 0,
'@typescript-eslint/no-unused-expressions': 'warn',
'no-negated-condition': 0,
'arrow-body-style': 0,
'no-nested-ternary': 0,
'@typescript-eslint/naming-convention': 'warn',
'react/display-name': 0,
'@typescript-eslint/no-unsafe-argument': 'warn',
'@regru/prefer-early-return/prefer-early-return': 0,
'react/jsx-props-no-spreading': 'warn',
'unicorn/consistent-function-scoping': 0,
'@typescript-eslint/no-use-before-define': 0,
'no-restricted-syntax': 0,
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/require-await': 'warn',
'react/jsx-filename-extension': 0,
'no-console': 0,
'unicorn/no-useless-undefined': 0,
'no-plusplus': 0,
'unicorn/no-array-reduce': 0,
'unicorn/no-await-expression-member': 0,
'@typescript-eslint/no-misused-promises': 0,
'jsx-a11y/role-has-required-aria-props': 0,
'no-redeclare': 0,
'@typescript-eslint/no-unnecessary-condition': 'warn',
'@typescript-eslint/no-unsafe-member-access': 0,
'fp/no-delete': 0,
'jsdoc/check-param-names': 0,
'sonarjs/no-duplicated-branches': 0,
'@typescript-eslint/no-unsafe-return': 0,
'only-export-components/only-export-components': 0,
'@typescript-eslint/no-redundant-type-constituents': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unsafe-call': 0,
'fp/no-class': 0,
'@typescript-eslint/no-throw-literal': 0,
'unicorn/no-unsafe-regex': 0,
'react/hook-use-state': 0,
'no-case-declarations': 0,
'sonarjs/no-duplicate-string': 0,
'sonarjs/no-identical-conditions': 0,
'operator-assignment': 0,
'storybook/prefer-pascal-case': 0,
'react/jsx-no-useless-fragment': 0,
},
},
]);