forked from skbkontur/retail-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
111 lines (110 loc) · 3.43 KB
/
.eslintrc
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
104
105
106
107
108
109
110
111
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["@skbkontur", "plugin:react-hooks/recommended", "plugin:@typescript-eslint/recommended"],
"globals": {
"__DEV__": true,
"Generator": true,
"Iterable": true,
"$Shape": true,
"SyntheticClipboardEvent": true,
"SyntheticCompositionEvent": true,
"SyntheticDragEvent": true,
"SyntheticEvent": true,
"SyntheticFocusEvent": true,
"SyntheticInputEvent": true,
"SyntheticKeyboardEvent": true,
"SyntheticMouseEvent": true,
"SyntheticTouchEvent": true,
"SyntheticUIEvent": true,
"SyntheticWheelEvent": true,
"Lookup": true,
"ReactTesting": true
},
"rules": {
"no-self-compare": 1,
"no-template-curly-in-string": 1,
"no-unmodified-loop-condition": 2,
"no-unreachable-loop": 2,
"default-case-last": 2,
"default-param-last": 2,
"no-array-constructor": 2,
"no-eval": 2,
"no-implied-eval": 2,
"no-extend-native": 2,
"no-extra-label": 2,
"no-floating-decimal": 1,
"no-lone-blocks": 2,
"no-new-wrappers": 1,
"no-proto": 2,
"no-throw-literal": 2,
"no-undef-init": 2,
"no-unneeded-ternary": 1,
"no-useless-concat": 1,
"prefer-spread": 1,
"no-useless-computed-key": 1,
"no-else-return": 1,
"no-lonely-if": 1,
"yoda": 1,
"eqeqeq": 2,
"no-implicit-coercion": [2, { "allow": ["!!", "+"] }],
"new-cap": 2,
"curly": 1,
"array-callback-return": 2,
"no-nested-ternary": 2,
"no-multi-assign": 2,
"max-statements-per-line": [2, { "max": 1 }],
"no-param-reassign": 2,
"object-shorthand": 2,
"no-sequences": 2,
"no-useless-constructor": 2,
"no-bitwise": 2,
"no-restricted-syntax": [
2,
{
"selector": "ImportNamespaceSpecifier[local.name='React']",
"message": "Use `import React from 'react'`"
},
{
"selector": "ImportNamespaceSpecifier[local.name='ReactDOM']",
"message": "Use `import { ... } from 'react-dom'`"
}
],
"import/default": 0,
"import/order": [
2,
{
"newlines-between": "always"
}
],
"import/no-unresolved": 0,
"import/no-duplicates": 2,
"import/no-default-export": 2,
"react/no-find-dom-node": 0,
"@typescript-eslint/no-unused-vars": [1, { "ignoreRestSiblings": true }],
"react/jsx-boolean-value": 2,
"react/prop-types": [2, { "skipUndeclared": true }],
"react-hooks/exhaustive-deps": 0,
"react/no-unstable-nested-components": 2,
"react-hooks/rules-of-hooks": 2,
"react/no-typos": 2,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-non-null-assertion": 2,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-types": 2,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/array-type": [1, { "default": "array-simple" }],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/no-noninteractive-tabindex": 0,
"jsx-a11y/no-autofocus": 0,
"jsx-a11y/mouse-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/anchor-is-valid": 0
}
}