-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
103 lines (92 loc) · 3.18 KB
/
.eslintrc.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
module.exports = {
parserOptions: {
project: ['./packages/*/tsconfig.json', 'tsconfig.dev.json', './www/tsconfig.json'],
tsconfigRootDir: __dirname,
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'eslint:recommended',
'plugin:eslint-comments/recommended',
'plugin:node/recommended',
'plugin:promise/recommended',
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'plugin:regexp/recommended',
'plugin:security/recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:testing-library/react',
'plugin:cypress/recommended',
'plugin:jsdoc/recommended',
],
plugins: ['simple-import-sort'],
rules: {
'no-void': 0,
'consistent-return': 0,
'no-console': 0,
'operator-linebreak': [2, 'after', { overrides: { '?': 'before', ':': 'before' } }],
'no-use-before-define': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unused-expressions': [2, { allowShortCircuit: true }],
'@typescript-eslint/no-floating-promises': [2, { ignoreIIFE: true, ignoreVoid: true }],
'@typescript-eslint/no-use-before-define': [
2,
{ functions: false, classes: true, variables: true, typedefs: true },
],
'@typescript-eslint/naming-convention': [
2,
{
selector: 'interface',
format: ['PascalCase'],
custom: {
regex: '^I[A-Z]',
match: false,
},
},
],
'security/detect-non-literal-regexp': 0,
'security/detect-object-injection': 0,
'security/detect-unsafe-regex': 0,
'regexp/no-unused-capturing-group': 0,
'simple-import-sort/imports': 2,
'simple-import-sort/exports': 2,
'import/first': 2,
'import/newline-after-import': 2,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'import/no-duplicates': 2,
'import/extensions': [2, 'never', { json: 'always' }],
'react/prop-types': 0,
'react/require-default-props': 0,
'react/jsx-boolean-value': [2, 'never'],
'react/jsx-props-no-spreading': 0,
'react/display-name': 0,
'react/react-in-jsx-scope': 0,
'jsx-a11y/click-events-have-key-events': 0, // Disabled (https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md)
'node/no-unsupported-features/es-syntax': 0,
'node/no-unpublished-import': 0,
'node/no-missing-import': 0,
'node/no-unpublished-require': 0,
'node/no-extraneous-import': 0,
'node/no-unsupported-features/node-builtins': 0,
'promise/always-return': 0,
'jest/consistent-test-it': 2,
'jest/lowercase-name': 2,
'jest/require-top-level-describe': 2,
'jsdoc/require-param-type': 0,
'jsdoc/require-returns-type': 0,
},
};