forked from nexxtway/react-rainbow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
141 lines (141 loc) · 4.87 KB
/
.eslintrc.json
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier/react",
"plugin:markdown/recommended"
],
"plugins": [
"babel",
"react",
"jest",
"jsx-a11y",
"import",
"webdriverio",
"react-hooks",
"prettier",
"rainbow",
"markdown"
],
"overrides": [
{
"files": ["**/*.md"],
"processor": "markdown/markdown"
},
{
"files": ["**/*.md/*.js"],
"rules": {
"prettier/prettier": "off",
"import/no-extraneous-dependencies": "off",
"no-alert": "off",
"no-console": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^initialState$" }],
"object-curly-spacing": ["error", "always"],
"no-trailing-spaces": "error",
"arrow-spacing": ["error", { "before": true, "after": true }],
"react/jsx-indent": ["error", 4],
"react/prop-types": "off",
"react/jsx-no-undef": ["error", { "allowGlobals": true }],
"react/jsx-closing-bracket-location": "error"
},
"globals": {
"state": true,
"setState": true,
"GlobalHeader": true,
"HangoutsIcon": true,
"PhoneSolidIcon": true,
"MarkerIcon": true,
"CommentsIcon": true,
"StartupIcon": true,
"DesignIcon": true,
"PhotographerIcon": true,
"CodeIcon": true,
"FileIcon": true,
"FolderCloseIcon": true,
"UserSignUpIcon": true,
"UserFirstPostIcon": true,
"GoogleIcon": true,
"FacebookIcon": true,
"TwitterIcon": true,
"Users": true,
"DataTable": true,
"DynamicDataTable": true,
"ActionsDataTable": true,
"ListviewDataTable": true,
"Coin": true,
"LIBRARY_STRIPE_APIKEY": true,
"LIBRARY_GOOGLE_MAPS_APIKEY": true,
"LIBRARY_RECAPTCHA_APIKEY": true,
"UserIcon": true,
"InverseContainer": true,
"DashboardPurpleIcon": true,
"ApplicationIcon": true,
"PuzzleIcon": true,
"MessagesIcon": true,
"ChartsIcon": true,
"HomeBorderIcon": true,
"HomeFilledIcon": true,
"ExportBorderIcon": true,
"ExportFilledIcon": true,
"MoneyBorderIcon": true,
"MoneyFilledIcon": true,
"GitHubIcon": true,
"DashboardIcon": true,
"AddFilledIcon": true,
"BuildingIcon": true,
"CalendarIcon": true,
"CheckmarkIcon": true,
"ParisIcon": true,
"PlusIcon": true,
"TrashBorderIcon": true,
"PencilBorderIcon": true,
"CloseIcon": true,
"UploadIcon": true,
"ArrowDownIcon": true,
"BellIcon": true,
"PhoneIcon": true,
"EmailIcon": true,
"ShoppingCartIcon": true,
"UserAvatarIcon": true,
"AvatarIcon": true,
"UserVerifiedIcon": true,
"AdvancedSettingsIcon": true,
"SettingsIcon": true,
"CompanyIcon": true,
"InfoIcon": true,
"TextIcon": true,
"ListIcon": true,
"OneIcon": true
}
}
],
"rules": {
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/jsx-first-prop-new-line": "off",
"react/jsx-closing-bracket-location": "off",
"react/forbid-prop-types": "off",
"no-mixed-operators": "off",
"arrow-parens": ["error", "as-needed"],
"linebreak-style": 0,
"id-length": [2, { "min": 3, "exceptions": ["id", "li", "td", "th", "Ul", "to", "as"] }],
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": true }],
"rainbow/no-double-negation-renderif": 2,
"rainbow/no-capitalized-props": 2
},
"env": {
"es6": true,
"node": true,
"browser": true,
"jest/globals": true,
"webdriverio/wdio": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}