@centreon/js-config 24.8.0 → 24.8.1
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/base.json +224 -0
- package/package.json +1 -1
package/biome/base.json
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
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
|
+
},
|
|
26
|
+
"nursery": {
|
|
27
|
+
"noConsole": "error",
|
|
28
|
+
"noRestrictedImports": {
|
|
29
|
+
"level": "error",
|
|
30
|
+
"options": {
|
|
31
|
+
"paths": {
|
|
32
|
+
"lodash": "Using lodash is not encouraged.",
|
|
33
|
+
"moment": "Using moment is not encouraged."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"noUnknownFunction": "error",
|
|
38
|
+
"noUnknownProperty": "error",
|
|
39
|
+
"noUnknownUnit": "error"
|
|
40
|
+
},
|
|
41
|
+
"suspicious": {
|
|
42
|
+
"useAwait": "error"
|
|
43
|
+
},
|
|
44
|
+
"performance": {
|
|
45
|
+
"noAccumulatingSpread": "off"
|
|
46
|
+
},
|
|
47
|
+
"style": {
|
|
48
|
+
"useLiteralEnumMembers": "off",
|
|
49
|
+
"useImportType": "off",
|
|
50
|
+
"noNamespace": "error",
|
|
51
|
+
"noNamespaceImport": "error",
|
|
52
|
+
"useFragmentSyntax": "error",
|
|
53
|
+
"useFilenamingConvention": {
|
|
54
|
+
"level": "error",
|
|
55
|
+
"options": {
|
|
56
|
+
"strictCase": false,
|
|
57
|
+
"filenameCases": [
|
|
58
|
+
"camelCase",
|
|
59
|
+
"PascalCase",
|
|
60
|
+
"kebab-case"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"useNamingConvention": {
|
|
65
|
+
"level": "error",
|
|
66
|
+
"options": {
|
|
67
|
+
"strictCase": false,
|
|
68
|
+
"conventions": [
|
|
69
|
+
{
|
|
70
|
+
"formats": [
|
|
71
|
+
"camelCase",
|
|
72
|
+
"PascalCase"
|
|
73
|
+
],
|
|
74
|
+
"selector": {
|
|
75
|
+
"kind": "variable"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"selector": {
|
|
80
|
+
"kind": "interface"
|
|
81
|
+
},
|
|
82
|
+
"formats": [
|
|
83
|
+
"PascalCase"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"selector": {
|
|
88
|
+
"kind": "enum"
|
|
89
|
+
},
|
|
90
|
+
"formats": [
|
|
91
|
+
"PascalCase"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"selector": {
|
|
96
|
+
"kind": "objectLiteralProperty"
|
|
97
|
+
},
|
|
98
|
+
"match": ".*"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"match": "_(.*)|([a-zA-Z].*)",
|
|
102
|
+
"selector": {
|
|
103
|
+
"kind": "functionParameter"
|
|
104
|
+
},
|
|
105
|
+
"formats": [
|
|
106
|
+
"snake_case",
|
|
107
|
+
"PascalCase",
|
|
108
|
+
"camelCase"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"match": ".*",
|
|
113
|
+
"formats": [
|
|
114
|
+
"snake_case",
|
|
115
|
+
"camelCase",
|
|
116
|
+
"PascalCase",
|
|
117
|
+
"CONSTANT_CASE"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"noRestrictedGlobals": {
|
|
124
|
+
"level": "error",
|
|
125
|
+
"options": {
|
|
126
|
+
"deniedGlobals": [
|
|
127
|
+
"isFinite",
|
|
128
|
+
"isNaN",
|
|
129
|
+
"addEventListener",
|
|
130
|
+
"blur",
|
|
131
|
+
"close",
|
|
132
|
+
"closed",
|
|
133
|
+
"confirm",
|
|
134
|
+
"defaultStatus",
|
|
135
|
+
"defaultstatus",
|
|
136
|
+
"event",
|
|
137
|
+
"external",
|
|
138
|
+
"find",
|
|
139
|
+
"focus",
|
|
140
|
+
"frameElement",
|
|
141
|
+
"frames",
|
|
142
|
+
"history",
|
|
143
|
+
"innerHeight",
|
|
144
|
+
"innerWidth",
|
|
145
|
+
"length",
|
|
146
|
+
"location",
|
|
147
|
+
"locationbar",
|
|
148
|
+
"menubar",
|
|
149
|
+
"moveBy",
|
|
150
|
+
"moveTo",
|
|
151
|
+
"name",
|
|
152
|
+
"onblur",
|
|
153
|
+
"onerror",
|
|
154
|
+
"onfocus",
|
|
155
|
+
"onload",
|
|
156
|
+
"onresize",
|
|
157
|
+
"onunload",
|
|
158
|
+
"open",
|
|
159
|
+
"opener",
|
|
160
|
+
"opera",
|
|
161
|
+
"outerHeight",
|
|
162
|
+
"outerWidth",
|
|
163
|
+
"pageXOffset",
|
|
164
|
+
"pageYOffset",
|
|
165
|
+
"parent",
|
|
166
|
+
"print",
|
|
167
|
+
"removeEventListener",
|
|
168
|
+
"resizeBy",
|
|
169
|
+
"resizeTo",
|
|
170
|
+
"screen",
|
|
171
|
+
"screenLeft",
|
|
172
|
+
"screenTop",
|
|
173
|
+
"screenX",
|
|
174
|
+
"screenY",
|
|
175
|
+
"scroll",
|
|
176
|
+
"scrollbars",
|
|
177
|
+
"scrollBy",
|
|
178
|
+
"scrollTo",
|
|
179
|
+
"scrollX",
|
|
180
|
+
"scrollY",
|
|
181
|
+
"self",
|
|
182
|
+
"status",
|
|
183
|
+
"statusbar",
|
|
184
|
+
"stop",
|
|
185
|
+
"toolbar",
|
|
186
|
+
"top"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"javascript": {
|
|
194
|
+
"formatter": {
|
|
195
|
+
"enabled": true,
|
|
196
|
+
"quoteStyle": "single",
|
|
197
|
+
"semicolons": "always",
|
|
198
|
+
"indentStyle": "space",
|
|
199
|
+
"trailingCommas": "none"
|
|
200
|
+
},
|
|
201
|
+
"linter": {
|
|
202
|
+
"enabled": true
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"json": {
|
|
206
|
+
"parser": {
|
|
207
|
+
"allowComments": true,
|
|
208
|
+
"allowTrailingCommas": false
|
|
209
|
+
},
|
|
210
|
+
"formatter": {
|
|
211
|
+
"enabled": true,
|
|
212
|
+
"indentStyle": "space"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"css": {
|
|
216
|
+
"formatter": {
|
|
217
|
+
"enabled": true,
|
|
218
|
+
"indentStyle": "space"
|
|
219
|
+
},
|
|
220
|
+
"linter": {
|
|
221
|
+
"enabled": true
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
package/package.json
CHANGED