-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·83 lines (82 loc) · 2.08 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
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
}
},
"env": {
"browser": true,
"node": true,
"es2020": true,
"jest": true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/prop-types": 0,
"react/button-has-type": "off",
"react/no-array-index-key": "warn",
"operator-linebreak": "off",
"no-shadow": ["off", { "builtinGlobals": false, "hoist": "functions", "allow": [] }],
"prettier/prettier": [
"error",
{},
{
"usePrettierrc": true
}
],
"camelcase": "warn",
"eqeqeq": "warn",
"no-use-before-define": [
"error",
{
"functions": true,
"classes": false,
"variables": true
}
],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"semi": ["error", "never"],
"import/prefer-default-export": "off",
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"max-classes-per-file": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"one-var": "off",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": "off",
"react/state-in-constructor": "off",
"no-unused-expressions": "off",
"no-unused-vars": "warn",
"no-continue": "off",
"import/no-cycle": "warn",
"default-case": "off",
"no-return-assign": "off"
},
"globals": {
"window": true,
"document": true,
"localStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true,
"Headers": true,
"Request": true,
"fetch": true
}
}