-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
77 lines (77 loc) · 2.48 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'airbnb',
// 'react-app',
'plugin:eqeqeq-fix/recommended',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'react',
'only-warn',
'react-hooks',
],
rules: {
'arrow-parens': [1, 'as-needed'],
'react/jsx-indent': 'off',
'react/jsx-indent-props': 'off',
'react/no-access-state-in-setstate': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'no-plusplus': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/no-render-return-value': 'off',
'max-len': 'off',
'react/destructuring-assignment': 'off',
'react/prefer-stateless-function': 'off',
'react/self-closing-comp': 'off',
'react/jsx-filename-extension': 'off',
'no-nested-ternary': 'off',
'react/no-array-index-key': 'off',
'react/jsx-props-no-spreading': 'off',
'react/sort-comp': 'off',
'react/no-did-update-set-state': 'off',
'global-require': 'off',
'import/extensions': 'off',
'operator-linebreak': 'off',
'no-unused-expressions': 'off',
'prefer-destructuring': 'off',
'no-return-assign': 'off',
'no-multi-spaces': 'off',
'key-spacing': 'off',
'no-undef': 2,
'react/forbid-prop-types': 'off',
'react/require-default-props': 'off',
'import/no-extraneous-dependencies': 'off',
'react/jsx-wrap-multilines': 'off',
'react/jsx-closing-tag-location': 'off',
'no-restricted-syntax': 'off',
'guard-for-in': 'off',
// 'linebreak-style': ["error", "windows"],
'linebreak-style': ['off'],
'no-param-reassign': 'off',
'no-await-in-loop': 'off',
'no-console': ['error', { allow: ['warn', 'error', 'log'] }],
'no-underscore-dangle': 'off',
'no-constant-condition': 'off',
'no-loop-func': 'off',
'no-continue': 'off',
'implicit-arrow-linebreak': 'off',
'react/function-component-definition': 'off',
radix: 'off',
indent: ['error', 4, { SwitchCase: 1 }],
'no-alert': 'off',
},
};