-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
84 lines (83 loc) · 1.92 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
84
{
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"mixpanel": false,
"gtag": false,
"analytics": false,
"t": false,
"logError": false
},
"plugins": ["react", "prettier"],
"settings": {
"import/resolver": "webpack"
},
"rules": {
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"endOfLine": "auto"
}
],
"import/no-dynamic-require": 0,
"import/prefer-default-export": 0,
"import/no-cycle": 0,
"import/extensions": 0,
"react/jsx-filename-extension": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"global-require": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": 0,
"react/sort-prop-types": [
1, {
"callbacksLast": true
}
],
"react/jsx-sort-default-props": 1,
"react/jsx-sort-props": [
1, {
"callbacksLast": true,
"reservedFirst": true,
"ignoreCase": true
}
],
"react/jsx-handler-names": 1,
"react/forbid-prop-types": 0,
"react/no-did-update-set-state": 0,
"react/no-array-index-key" : 1,
"react/jsx-props-no-spreading": 0,
"react/state-in-constructor": 1,
"curly": 1,
"no-confusing-arrow": 0,
"no-use-before-define": 0,
"no-plusplus": 0,
"class-methods-use-this": 0,
"no-param-reassign": 0,
// TODO Fix below rules and remove from config
"no-unused-expressions": 0
}
}