@centreon/js-config 26.1.2 → 26.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biome/biome.json +263 -0
- package/package.json +1 -1
- package/biome/base.json +0 -210
package/biome/biome.json
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": false,
|
|
3
|
+
"formatter": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"indentStyle": "space",
|
|
6
|
+
"formatWithErrors": false
|
|
7
|
+
},
|
|
8
|
+
"assist": {
|
|
9
|
+
"actions": {
|
|
10
|
+
"source": {
|
|
11
|
+
"useSortedKeys": "on",
|
|
12
|
+
"useSortedAttributes": "on",
|
|
13
|
+
"organizeImports": {
|
|
14
|
+
"level": "on",
|
|
15
|
+
"options": {
|
|
16
|
+
"groups": [
|
|
17
|
+
":NODE:",
|
|
18
|
+
":BLANK_LINE:",
|
|
19
|
+
"^react$",
|
|
20
|
+
":BLANK_LINE:",
|
|
21
|
+
"@mui/**",
|
|
22
|
+
":BLANK_LINE:",
|
|
23
|
+
"@centreon/**",
|
|
24
|
+
":BLANK_LINE:",
|
|
25
|
+
":ALIAS:",
|
|
26
|
+
":BLANK_LINE:",
|
|
27
|
+
"^ramda$",
|
|
28
|
+
":BLANK_LINE:",
|
|
29
|
+
"^jotai*",
|
|
30
|
+
":BLANK_LINE:",
|
|
31
|
+
":PACKAGE:",
|
|
32
|
+
":BLANK_LINE:",
|
|
33
|
+
":PATH:"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"linter": {
|
|
41
|
+
"enabled": true,
|
|
42
|
+
"rules": {
|
|
43
|
+
"recommended": true,
|
|
44
|
+
"a11y": {
|
|
45
|
+
"noSvgWithoutTitle": "off"
|
|
46
|
+
},
|
|
47
|
+
"complexity": {
|
|
48
|
+
"noBannedTypes": "off",
|
|
49
|
+
"noForEach": "off",
|
|
50
|
+
"noExcessiveCognitiveComplexity": {
|
|
51
|
+
"level": "error",
|
|
52
|
+
"options": {
|
|
53
|
+
"maxAllowedComplexity": 29
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"security": {
|
|
58
|
+
"noSecrets": {
|
|
59
|
+
"level": "error",
|
|
60
|
+
"options": {
|
|
61
|
+
"entropyThreshold": 70
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"correctness": {
|
|
66
|
+
"noReactPropAssignments": "error",
|
|
67
|
+
"noUnusedImports": "error",
|
|
68
|
+
"noUnusedVariables": "error",
|
|
69
|
+
"useExhaustiveDependencies": "off",
|
|
70
|
+
"noUnknownUnit": "error",
|
|
71
|
+
"noUnknownProperty": "error",
|
|
72
|
+
"noUnknownFunction": "error",
|
|
73
|
+
"useIsNan": "error"
|
|
74
|
+
},
|
|
75
|
+
"nursery": {},
|
|
76
|
+
"suspicious": {
|
|
77
|
+
"noConsole": "error",
|
|
78
|
+
"useAwait": "error"
|
|
79
|
+
},
|
|
80
|
+
"performance": {
|
|
81
|
+
"noAccumulatingSpread": "off",
|
|
82
|
+
"noNamespaceImport": "error"
|
|
83
|
+
},
|
|
84
|
+
"style": {
|
|
85
|
+
"useConsistentArrayType": {
|
|
86
|
+
"level": "error",
|
|
87
|
+
"options": {
|
|
88
|
+
"syntax": "generic"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"useLiteralEnumMembers": "off",
|
|
92
|
+
"useImportType": "off",
|
|
93
|
+
"noNamespace": "error",
|
|
94
|
+
"useFragmentSyntax": "error",
|
|
95
|
+
"useFilenamingConvention": {
|
|
96
|
+
"level": "error",
|
|
97
|
+
"options": {
|
|
98
|
+
"strictCase": false,
|
|
99
|
+
"filenameCases": ["camelCase", "PascalCase", "kebab-case"]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"useNamingConvention": {
|
|
103
|
+
"level": "error",
|
|
104
|
+
"options": {
|
|
105
|
+
"strictCase": false,
|
|
106
|
+
"conventions": [
|
|
107
|
+
{
|
|
108
|
+
"formats": ["camelCase", "PascalCase"],
|
|
109
|
+
"selector": {
|
|
110
|
+
"kind": "variable"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"selector": {
|
|
115
|
+
"kind": "interface"
|
|
116
|
+
},
|
|
117
|
+
"formats": ["PascalCase"]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"selector": {
|
|
121
|
+
"kind": "enum"
|
|
122
|
+
},
|
|
123
|
+
"formats": ["PascalCase"]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"selector": {
|
|
127
|
+
"kind": "objectLiteralProperty"
|
|
128
|
+
},
|
|
129
|
+
"match": ".*"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"match": "_(.*)|[$]?([a-zA-Z].*)",
|
|
133
|
+
"selector": {
|
|
134
|
+
"kind": "functionParameter"
|
|
135
|
+
},
|
|
136
|
+
"formats": ["snake_case", "PascalCase", "camelCase"]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"match": ".*",
|
|
140
|
+
"formats": [
|
|
141
|
+
"snake_case",
|
|
142
|
+
"camelCase",
|
|
143
|
+
"PascalCase",
|
|
144
|
+
"CONSTANT_CASE"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"noRestrictedGlobals": {
|
|
151
|
+
"level": "error",
|
|
152
|
+
"options": {
|
|
153
|
+
"deniedGlobals": {
|
|
154
|
+
"isFinite": "Do not use globals.",
|
|
155
|
+
"isNaN": "Do not use globals.",
|
|
156
|
+
"addEventListener": "Do not use globals.",
|
|
157
|
+
"blur": "Do not use globals.",
|
|
158
|
+
"close": "Do not use globals.",
|
|
159
|
+
"closed": "Do not use globals.",
|
|
160
|
+
"confirm": "Do not use globals.",
|
|
161
|
+
"defaultStatus": "Do not use globals.",
|
|
162
|
+
"defaultstatus": "Do not use globals.",
|
|
163
|
+
"event": "Do not use globals.",
|
|
164
|
+
"external": "Do not use globals.",
|
|
165
|
+
"find": "Do not use globals.",
|
|
166
|
+
"focus": "Do not use globals.",
|
|
167
|
+
"frameElement": "Do not use globals.",
|
|
168
|
+
"frames": "Do not use globals.",
|
|
169
|
+
"history": "Do not use globals.",
|
|
170
|
+
"innerHeight": "Do not use globals.",
|
|
171
|
+
"innerWidth": "Do not use globals.",
|
|
172
|
+
"length": "Do not use globals.",
|
|
173
|
+
"location": "Do not use globals.",
|
|
174
|
+
"locationbar": "Do not use globals.",
|
|
175
|
+
"menubar": "Do not use globals.",
|
|
176
|
+
"moveBy": "Do not use globals.",
|
|
177
|
+
"moveTo": "Do not use globals.",
|
|
178
|
+
"name": "Do not use globals.",
|
|
179
|
+
"onblur": "Do not use globals.",
|
|
180
|
+
"onerror": "Do not use globals.",
|
|
181
|
+
"onfocus": "Do not use globals.",
|
|
182
|
+
"onload": "Do not use globals.",
|
|
183
|
+
"onresize": "Do not use globals.",
|
|
184
|
+
"onunload": "Do not use globals.",
|
|
185
|
+
"open": "Do not use globals.",
|
|
186
|
+
"opener": "Do not use globals.",
|
|
187
|
+
"opera": "Do not use globals.",
|
|
188
|
+
"outerHeight": "Do not use globals.",
|
|
189
|
+
"outerWidth": "Do not use globals.",
|
|
190
|
+
"pageXOffset": "Do not use globals.",
|
|
191
|
+
"pageYOffset": "Do not use globals.",
|
|
192
|
+
"parent": "Do not use globals.",
|
|
193
|
+
"print": "Do not use globals.",
|
|
194
|
+
"removeEventListener": "Do not use globals.",
|
|
195
|
+
"resizeBy": "Do not use globals.",
|
|
196
|
+
"resizeTo": "Do not use globals.",
|
|
197
|
+
"screen": "Do not use globals.",
|
|
198
|
+
"screenLeft": "Do not use globals.",
|
|
199
|
+
"screenTop": "Do not use globals.",
|
|
200
|
+
"screenX": "Do not use globals.",
|
|
201
|
+
"screenY": "Do not use globals.",
|
|
202
|
+
"scroll": "Do not use globals.",
|
|
203
|
+
"scrollbars": "Do not use globals.",
|
|
204
|
+
"scrollBy": "Do not use globals.",
|
|
205
|
+
"scrollTo": "Do not use globals.",
|
|
206
|
+
"scrollX": "Do not use globals.",
|
|
207
|
+
"scrollY": "Do not use globals.",
|
|
208
|
+
"self": "Do not use globals.",
|
|
209
|
+
"status": "Do not use globals.",
|
|
210
|
+
"statusbar": "Do not use globals.",
|
|
211
|
+
"stop": "Do not use globals.",
|
|
212
|
+
"toolbar": "Do not use globals.",
|
|
213
|
+
"top": "Do not use globals."
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"noRestrictedImports": {
|
|
218
|
+
"level": "error",
|
|
219
|
+
"options": {
|
|
220
|
+
"paths": {
|
|
221
|
+
"lodash": "Using lodash is not encouraged.",
|
|
222
|
+
"moment": "Using moment is not encouraged."
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"javascript": {
|
|
230
|
+
"formatter": {
|
|
231
|
+
"enabled": true,
|
|
232
|
+
"quoteStyle": "single",
|
|
233
|
+
"semicolons": "always",
|
|
234
|
+
"indentStyle": "space",
|
|
235
|
+
"trailingCommas": "none"
|
|
236
|
+
},
|
|
237
|
+
"linter": {
|
|
238
|
+
"enabled": true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"json": {
|
|
242
|
+
"parser": {
|
|
243
|
+
"allowComments": true,
|
|
244
|
+
"allowTrailingCommas": false
|
|
245
|
+
},
|
|
246
|
+
"formatter": {
|
|
247
|
+
"enabled": true,
|
|
248
|
+
"indentStyle": "space"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"css": {
|
|
252
|
+
"parser": {
|
|
253
|
+
"tailwindDirectives": true
|
|
254
|
+
},
|
|
255
|
+
"formatter": {
|
|
256
|
+
"enabled": true,
|
|
257
|
+
"indentStyle": "space"
|
|
258
|
+
},
|
|
259
|
+
"linter": {
|
|
260
|
+
"enabled": true
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
package/package.json
CHANGED
package/biome/base.json
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"formatter": {
|
|
3
|
-
"enabled": true,
|
|
4
|
-
"indentStyle": "space",
|
|
5
|
-
"formatWithErrors": false
|
|
6
|
-
},
|
|
7
|
-
"organizeImports": {
|
|
8
|
-
"enabled": true
|
|
9
|
-
},
|
|
10
|
-
"linter": {
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"rules": {
|
|
13
|
-
"recommended": true,
|
|
14
|
-
"a11y": {
|
|
15
|
-
"noSvgWithoutTitle": "off"
|
|
16
|
-
},
|
|
17
|
-
"complexity": {
|
|
18
|
-
"noBannedTypes": "off",
|
|
19
|
-
"noForEach": "off"
|
|
20
|
-
},
|
|
21
|
-
"correctness": {
|
|
22
|
-
"noUnusedImports": "error",
|
|
23
|
-
"noUnusedVariables": "error",
|
|
24
|
-
"useExhaustiveDependencies": "off",
|
|
25
|
-
"noUnknownUnit": "error",
|
|
26
|
-
"noUnknownProperty": "error",
|
|
27
|
-
"noUnknownFunction": "error",
|
|
28
|
-
"useIsNan": "error"
|
|
29
|
-
},
|
|
30
|
-
"nursery": {
|
|
31
|
-
"noRestrictedImports": {
|
|
32
|
-
"level": "error",
|
|
33
|
-
"options": {
|
|
34
|
-
"paths": {
|
|
35
|
-
"lodash": "Using lodash is not encouraged.",
|
|
36
|
-
"moment": "Using moment is not encouraged."
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"suspicious": {
|
|
42
|
-
"noConsole": "error",
|
|
43
|
-
"useAwait": "error"
|
|
44
|
-
},
|
|
45
|
-
"performance": {
|
|
46
|
-
"noAccumulatingSpread": "off"
|
|
47
|
-
},
|
|
48
|
-
"style": {
|
|
49
|
-
"useLiteralEnumMembers": "off",
|
|
50
|
-
"useImportType": "off",
|
|
51
|
-
"noNamespace": "error",
|
|
52
|
-
"noNamespaceImport": "error",
|
|
53
|
-
"useFragmentSyntax": "error",
|
|
54
|
-
"useFilenamingConvention": {
|
|
55
|
-
"level": "error",
|
|
56
|
-
"options": {
|
|
57
|
-
"strictCase": false,
|
|
58
|
-
"filenameCases": ["camelCase", "PascalCase", "kebab-case"]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"useNamingConvention": {
|
|
62
|
-
"level": "error",
|
|
63
|
-
"options": {
|
|
64
|
-
"strictCase": false,
|
|
65
|
-
"conventions": [
|
|
66
|
-
{
|
|
67
|
-
"formats": ["camelCase", "PascalCase"],
|
|
68
|
-
"selector": {
|
|
69
|
-
"kind": "variable"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"selector": {
|
|
74
|
-
"kind": "interface"
|
|
75
|
-
},
|
|
76
|
-
"formats": ["PascalCase"]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"selector": {
|
|
80
|
-
"kind": "enum"
|
|
81
|
-
},
|
|
82
|
-
"formats": ["PascalCase"]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"selector": {
|
|
86
|
-
"kind": "objectLiteralProperty"
|
|
87
|
-
},
|
|
88
|
-
"match": ".*"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"match": "_(.*)|([a-zA-Z].*)",
|
|
92
|
-
"selector": {
|
|
93
|
-
"kind": "functionParameter"
|
|
94
|
-
},
|
|
95
|
-
"formats": ["snake_case", "PascalCase", "camelCase"]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"match": ".*",
|
|
99
|
-
"formats": [
|
|
100
|
-
"snake_case",
|
|
101
|
-
"camelCase",
|
|
102
|
-
"PascalCase",
|
|
103
|
-
"CONSTANT_CASE"
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"noRestrictedGlobals": {
|
|
110
|
-
"level": "error",
|
|
111
|
-
"options": {
|
|
112
|
-
"deniedGlobals": [
|
|
113
|
-
"isFinite",
|
|
114
|
-
"isNaN",
|
|
115
|
-
"addEventListener",
|
|
116
|
-
"blur",
|
|
117
|
-
"close",
|
|
118
|
-
"closed",
|
|
119
|
-
"confirm",
|
|
120
|
-
"defaultStatus",
|
|
121
|
-
"defaultstatus",
|
|
122
|
-
"event",
|
|
123
|
-
"external",
|
|
124
|
-
"find",
|
|
125
|
-
"focus",
|
|
126
|
-
"frameElement",
|
|
127
|
-
"frames",
|
|
128
|
-
"history",
|
|
129
|
-
"innerHeight",
|
|
130
|
-
"innerWidth",
|
|
131
|
-
"length",
|
|
132
|
-
"location",
|
|
133
|
-
"locationbar",
|
|
134
|
-
"menubar",
|
|
135
|
-
"moveBy",
|
|
136
|
-
"moveTo",
|
|
137
|
-
"name",
|
|
138
|
-
"onblur",
|
|
139
|
-
"onerror",
|
|
140
|
-
"onfocus",
|
|
141
|
-
"onload",
|
|
142
|
-
"onresize",
|
|
143
|
-
"onunload",
|
|
144
|
-
"open",
|
|
145
|
-
"opener",
|
|
146
|
-
"opera",
|
|
147
|
-
"outerHeight",
|
|
148
|
-
"outerWidth",
|
|
149
|
-
"pageXOffset",
|
|
150
|
-
"pageYOffset",
|
|
151
|
-
"parent",
|
|
152
|
-
"print",
|
|
153
|
-
"removeEventListener",
|
|
154
|
-
"resizeBy",
|
|
155
|
-
"resizeTo",
|
|
156
|
-
"screen",
|
|
157
|
-
"screenLeft",
|
|
158
|
-
"screenTop",
|
|
159
|
-
"screenX",
|
|
160
|
-
"screenY",
|
|
161
|
-
"scroll",
|
|
162
|
-
"scrollbars",
|
|
163
|
-
"scrollBy",
|
|
164
|
-
"scrollTo",
|
|
165
|
-
"scrollX",
|
|
166
|
-
"scrollY",
|
|
167
|
-
"self",
|
|
168
|
-
"status",
|
|
169
|
-
"statusbar",
|
|
170
|
-
"stop",
|
|
171
|
-
"toolbar",
|
|
172
|
-
"top"
|
|
173
|
-
]
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"javascript": {
|
|
180
|
-
"formatter": {
|
|
181
|
-
"enabled": true,
|
|
182
|
-
"quoteStyle": "single",
|
|
183
|
-
"semicolons": "always",
|
|
184
|
-
"indentStyle": "space",
|
|
185
|
-
"trailingCommas": "none"
|
|
186
|
-
},
|
|
187
|
-
"linter": {
|
|
188
|
-
"enabled": true
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"json": {
|
|
192
|
-
"parser": {
|
|
193
|
-
"allowComments": true,
|
|
194
|
-
"allowTrailingCommas": false
|
|
195
|
-
},
|
|
196
|
-
"formatter": {
|
|
197
|
-
"enabled": true,
|
|
198
|
-
"indentStyle": "space"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
"css": {
|
|
202
|
-
"formatter": {
|
|
203
|
-
"enabled": true,
|
|
204
|
-
"indentStyle": "space"
|
|
205
|
-
},
|
|
206
|
-
"linter": {
|
|
207
|
-
"enabled": true
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|