generated from yandex-praktikum/middle.messenger.praktikum.yandex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
48 lines (48 loc) · 1.31 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
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
],
rules: {
'no-unused-vars': 'warn',
'no-underscore-dangle': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'warn',
'import/prefer-default-export': 'off',
'no-shadow': 'warn',
'no-param-reassign': 'warn',
'class-methods-use-this': 'warn',
'no-useless-escape': 'warn',
'no-continue': 'off',
'no-prototype-builtins': 'warn',
'no-restricted-syntax': 'warn',
'no-constructor-return': 'off',
'no-use-before-define': 'warn',
'no-bitwise': 'off',
'consistent-return': 'off',
'no-return-assign': 'off',
'no-return-await': 'off',
'max-classes-per-file': 'off',
'global-require': 'warn',
'no-undef': 'warn',
'import/no-extraneous-dependencies': 'warn',
'max-len': ['error', { ignoreComments: true, code: 185 }],
},
};