-
Notifications
You must be signed in to change notification settings - Fork 76
/
.eslintrc.js
71 lines (71 loc) · 1.53 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:jest-dom/recommended',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
rules: {
'camelcase': 0,
'class-methods-use-this': 0,
'default-case': 'error',
'import/prefer-default-export': 0,
'import/no-named-as-default': 0,
'react/destructuring-assignment': 0,
'react/jsx-curly-spacing': 0,
'react/jsx-filename-extension': 0,
'react/forbid-prop-types': 0,
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
},
],
'react/prop-types': 0,
'react/require-default-props': 0,
'react/sort-comp': 0,
'max-len': 0,
'no-await-in-loop': 'error',
'no-case-declarations': 'error',
'no-console': 0,
'no-else-return': 0,
'no-empty': 'error',
'no-multi-spaces': ['error', {
ignoreEOLComments: true,
}],
'no-nested-ternary': 0,
'no-plusplus': [
'error',
{
allowForLoopAfterthoughts: true,
},
],
'no-param-reassign': 0,
'no-shadow': 'error',
'no-underscore-dangle': 0,
'no-unused-vars': ['error', {
args: 'none',
}],
'no-use-before-define': 'error',
'object-curly-newline': [
'error',
{
consistent: true,
},
],
'quote-props': ['error', 'as-needed', {
unnecessary: false,
}],
},
env: {
es6: true,
node: true,
browser: true,
},
globals: {
gtag: 'readonly',
},
};