-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.eslintrc
76 lines (76 loc) · 2.12 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
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true, // Enables browser global variables like window and document
"node": true, // Enables Node.js global variables and Node.js scoping
"es6": true, // Enables ES6 global variables like Set, Map, etc.
"commonjs": true, // CommonJS global variables and CommonJS scoping (useful for require)
"jquery": false, // Set to true if you're using jQuery
"jest": true // Enables Jest global variables for testing
},
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }]
],
"presets": [
"@babel/preset-react"
]
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"plugins": [
"react",
"jsx-a11y",
"prettier"
],
"rules": {
"no-param-reassign": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"max-classes-per-file": "off",
"import/no-extraneous-dependencies": "off",
"no-restricted-syntax": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"react/require-default-props": "off",
"react/forbid-prop-types": "off",
"react/destructuring-assignment": "off",
"react/static-property-placement": "off",
"react/sort-comp": "off",
"react/no-deprecated": "off",
"prettier/prettier": "error",
"import/no-unresolved": "off",
"react/display-name": "off",
"no-console": "off"
},
"globals": {
"__DEBUG_CONNECTION__": false,
"__DEV__": false,
"chrome": "readonly",
"window": false,
"document": false,
"self": false,
"describe": false,
"beforeEach": false,
"before": false,
"after": false,
"it": false,
"expect": false
},
"settings": {
"react": {
"version": "detect"
}
}
}