generated from yandex-praktikum/client-server-template-with-vite
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
178 lines (172 loc) · 5.16 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"env": {
"browser": true,
"es2020": true,
"node": true,
"jest": true
},
"ignorePatterns": ["**/dist/**", "**/dist-ssr/**"],
"extends": [
"airbnb",
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["react", "prettier", "@typescript-eslint", "react-hooks", "import"],
"rules": {
"import/extensions": 0,
"eqeqeq": [1, "always"],
"no-undef": 1,
"no-plusplus": 0,
"no-console": 1,
"no-unused-vars": 0,
"no-mixed-operators": 0,
"no-confusing-arrow": 0,
"no-extra-parens": 0,
"no-param-reassign": 0,
"prefer-template": 0,
"no-script-url": 0,
"prefer-promise-reject-errors": 0,
"no-unused-expressions": 0,
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
],
"multiline-comment-style": [2, "starred-block"],
"no-shadow": 0,
"no-useless-escape": 0,
"no-use-before-define": 0,
"consistent-return": 0,
"array-callback-return": 0,
"default-case": 0,
"default-param-last": 0,
"no-case-declarations": 0,
"import/prefer-default-export": 0,
"import/no-useless-path-segments": 1,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/no-duplicates": 0,
"import/order": 1,
"import/newline-after-import": 1,
"import/no-named-as-default-member": 0,
"import/namespace": 0,
"import/named": "warn",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/iframe-has-title": 0,
"jsx-a11y/control-has-associated-label": 0,
"react/jsx-uses-react": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": 0,
"react/jsx-boolean-value": 0,
"react/prop-types": 0,
"react/button-has-type": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-curly-spacing": 0,
"react/no-access-state-in-setstate": 0,
"react/destructuring-assignment": 0,
"react/jsx-no-bind": 0,
"react/require-default-props": 0,
"react/display-name": 0,
"react/jsx-props-no-spreading": 0,
"react/static-property-placement": 0,
"react/state-in-constructor": 0,
"react/no-array-index-key": 0,
"react/no-unescaped-entities": 0,
"react/jsx-no-comment-textnodes": 0,
"react/function-component-definition": 0,
"react-hooks/rules-of-hooks": 1,
"react-hooks/exhaustive-deps": 1,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-angle-bracket-type-assertion": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-extra-semi": 0,
"react/jsx-closing-bracket-location": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-curly-newline": 0,
"react/jsx-equals-spacing": 0,
"react/jsx-first-prop-new-line": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/jsx-max-props-per-line": 0,
"react/jsx-props-no-multi-spaces": 0,
"react/jsx-tag-spacing": 0,
"react/jsx-wrap-multilines": 0,
"react/jsx-no-useless-fragment": 0,
"arrow-body-style": 0,
"prefer-arrow-callback": 0,
"quotes": 0,
"max-len": [1, { "code": 120 }],
"class-methods-use-this": 1,
"lines-between-class-members": 0,
"no-useless-constructor": 1,
"import/no-absolute-path": 0,
"no-underscore-dangle": 0,
"no-constructor-return": 1,
"max-classes-per-file": [1, 4],
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"no-continue": 0,
"no-restricted-exports": 0,
"prettier/prettier": [
1,
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"tabWidth": 2,
"printWidth": 120,
"arrowParens": "avoid",
"endOfLine": "auto",
"bracketSameLine": true
}
],
"jsx-a11y/media-has-caption": 0
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}