@storm-software/eslint 0.170.83 → 0.170.84
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/dist/preset.cjs +1337 -121
- package/dist/preset.js +1347 -121
- package/dist/types.d.cts +3 -1
- package/dist/types.d.ts +3 -1
- package/package.json +10 -11
package/dist/preset.cjs
CHANGED
|
@@ -140,6 +140,1226 @@ var init_cjs_shims = __esm({
|
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/util/Components.js
|
|
144
|
+
var require_Components = __commonJS({
|
|
145
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/util/Components.js"(exports, module) {
|
|
146
|
+
init_cjs_shims();
|
|
147
|
+
function Components() {
|
|
148
|
+
this.list = {};
|
|
149
|
+
this.getId = function(node2) {
|
|
150
|
+
return node2 && node2.range.join(":");
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
Components.prototype.add = function(node2, confidence) {
|
|
154
|
+
const id = this.getId(node2);
|
|
155
|
+
if (this.list[id]) {
|
|
156
|
+
if (confidence === 0 || this.list[id].confidence === 0) {
|
|
157
|
+
this.list[id].confidence = 0;
|
|
158
|
+
} else {
|
|
159
|
+
this.list[id].confidence = Math.max(this.list[id].confidence, confidence);
|
|
160
|
+
}
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.list[id] = {
|
|
164
|
+
node: node2,
|
|
165
|
+
confidence
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
Components.prototype.get = function(node2) {
|
|
169
|
+
const id = this.getId(node2);
|
|
170
|
+
return this.list[id];
|
|
171
|
+
};
|
|
172
|
+
Components.prototype.set = function(node2, props) {
|
|
173
|
+
let currentNode = node2;
|
|
174
|
+
while (currentNode && !this.list[this.getId(currentNode)]) {
|
|
175
|
+
currentNode = node2.parent;
|
|
176
|
+
}
|
|
177
|
+
if (!currentNode) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const id = this.getId(currentNode);
|
|
181
|
+
this.list[id] = { ...this.list[id], ...props };
|
|
182
|
+
};
|
|
183
|
+
Components.prototype.all = function() {
|
|
184
|
+
const list = {};
|
|
185
|
+
Object.keys(this.list).forEach((i) => {
|
|
186
|
+
if ({}.hasOwnProperty.call(this.list, i) && this.list[i].confidence >= 2) {
|
|
187
|
+
list[i] = this.list[i];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return list;
|
|
191
|
+
};
|
|
192
|
+
Components.prototype.length = function() {
|
|
193
|
+
let length = 0;
|
|
194
|
+
Object.keys(this.list).forEach((i) => {
|
|
195
|
+
if ({}.hasOwnProperty.call(this.list, i) && this.list[i].confidence >= 2) {
|
|
196
|
+
length += 1;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
return length;
|
|
200
|
+
};
|
|
201
|
+
function componentRule(rule, context, _node) {
|
|
202
|
+
const sourceCode = context.sourceCode ?? context.getSourceCode();
|
|
203
|
+
const components = new Components();
|
|
204
|
+
const utils = {
|
|
205
|
+
/**
|
|
206
|
+
* Check if the node is a React ES5 component
|
|
207
|
+
*
|
|
208
|
+
* @param {ASTNode} node The AST node being checked.
|
|
209
|
+
* @returns {Boolean} True if the node is a React ES5 component, false if not
|
|
210
|
+
*/
|
|
211
|
+
isES5Component: function(node2) {
|
|
212
|
+
if (!node2.parent) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
return /^(React\.)?createClass$/.test(sourceCode.getText(node2.parent.callee));
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
* Check if the node is a React ES6 component
|
|
219
|
+
*
|
|
220
|
+
* @param {ASTNode} node The AST node being checked.
|
|
221
|
+
* @returns {Boolean} True if the node is a React ES6 component, false if not
|
|
222
|
+
*/
|
|
223
|
+
isES6Component: function(node2) {
|
|
224
|
+
if (!node2.superClass) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
return /^(React\.)?(Pure)?Component$/.test(sourceCode.getText(node2.superClass));
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Check if the node is returning JSX
|
|
231
|
+
*
|
|
232
|
+
* @param {ASTNode} node The AST node being checked (must be a ReturnStatement).
|
|
233
|
+
* @returns {Boolean} True if the node is returning JSX, false if not
|
|
234
|
+
*/
|
|
235
|
+
isReturningJSX: function(node2) {
|
|
236
|
+
let property;
|
|
237
|
+
switch (node2.type) {
|
|
238
|
+
case "ReturnStatement":
|
|
239
|
+
property = "argument";
|
|
240
|
+
break;
|
|
241
|
+
case "ArrowFunctionExpression":
|
|
242
|
+
property = "body";
|
|
243
|
+
break;
|
|
244
|
+
default:
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
const returnsJSX = node2[property] && (node2[property].type === "JSXElement" || node2[property].type === "JSXFragment");
|
|
248
|
+
const returnsReactCreateElement = node2[property] && node2[property].callee && node2[property].callee.property && node2[property].callee.property.name === "createElement";
|
|
249
|
+
return Boolean(returnsJSX || returnsReactCreateElement);
|
|
250
|
+
},
|
|
251
|
+
/**
|
|
252
|
+
* Get the parent component node from the current scope
|
|
253
|
+
*
|
|
254
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
255
|
+
*/
|
|
256
|
+
getParentComponent: function(_n) {
|
|
257
|
+
return utils.getParentES6Component(_n) || utils.getParentES5Component(_n) || utils.getParentStatelessComponent(_n);
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
* Get the parent ES5 component node from the current scope
|
|
261
|
+
*
|
|
262
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
263
|
+
*/
|
|
264
|
+
getParentES5Component: function(_n) {
|
|
265
|
+
let scope = (context.sourceCode || context).getScope(_n);
|
|
266
|
+
while (scope) {
|
|
267
|
+
const node2 = scope.block && scope.block.parent && scope.block.parent.parent;
|
|
268
|
+
if (node2 && utils.isES5Component(node2)) {
|
|
269
|
+
return node2;
|
|
270
|
+
}
|
|
271
|
+
scope = scope.upper;
|
|
272
|
+
}
|
|
273
|
+
return null;
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* Get the parent ES6 component node from the current scope
|
|
277
|
+
*
|
|
278
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
279
|
+
*/
|
|
280
|
+
getParentES6Component: function(_n) {
|
|
281
|
+
let scope = (context.sourceCode || context).getScope(_n);
|
|
282
|
+
while (scope && scope.type !== "class") {
|
|
283
|
+
scope = scope.upper;
|
|
284
|
+
}
|
|
285
|
+
const node2 = scope && scope.block;
|
|
286
|
+
if (!node2 || !utils.isES6Component(node2)) {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
return node2;
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* Get the parent stateless component node from the current scope
|
|
293
|
+
*
|
|
294
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
295
|
+
*/
|
|
296
|
+
getParentStatelessComponent: function(_n) {
|
|
297
|
+
let scope = (context.sourceCode || context).getScope(_n);
|
|
298
|
+
while (scope) {
|
|
299
|
+
const node2 = scope.block;
|
|
300
|
+
const isFunction = /Function/.test(node2.type);
|
|
301
|
+
const isNotMethod = !node2.parent || node2.parent.type !== "MethodDefinition";
|
|
302
|
+
const isNotArgument = !node2.parent || node2.parent.type !== "CallExpression";
|
|
303
|
+
if (isFunction && isNotMethod && isNotArgument) {
|
|
304
|
+
return node2;
|
|
305
|
+
}
|
|
306
|
+
scope = scope.upper;
|
|
307
|
+
}
|
|
308
|
+
return null;
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* Get the related component from a node
|
|
312
|
+
*
|
|
313
|
+
* @param {ASTNode} node The AST node being checked (must be a MemberExpression).
|
|
314
|
+
* @returns {ASTNode} component node, null if we cannot find the component
|
|
315
|
+
*/
|
|
316
|
+
getRelatedComponent: function(node2) {
|
|
317
|
+
let currentNode = node2;
|
|
318
|
+
let i;
|
|
319
|
+
let j;
|
|
320
|
+
let k;
|
|
321
|
+
let l;
|
|
322
|
+
const componentPath = [];
|
|
323
|
+
while (currentNode) {
|
|
324
|
+
if (currentNode.property && currentNode.property.type === "Identifier") {
|
|
325
|
+
componentPath.push(currentNode.property.name);
|
|
326
|
+
}
|
|
327
|
+
if (currentNode.object && currentNode.object.type === "Identifier") {
|
|
328
|
+
componentPath.push(currentNode.object.name);
|
|
329
|
+
}
|
|
330
|
+
currentNode = currentNode.object;
|
|
331
|
+
}
|
|
332
|
+
componentPath.reverse();
|
|
333
|
+
const variableName = componentPath.shift();
|
|
334
|
+
if (!variableName) {
|
|
335
|
+
return null;
|
|
336
|
+
}
|
|
337
|
+
let variableInScope;
|
|
338
|
+
const { variables } = (context.sourceCode || context).getScope(_node);
|
|
339
|
+
for (i = 0, j = variables.length; i < j; i++) {
|
|
340
|
+
if (variables[i].name === variableName) {
|
|
341
|
+
variableInScope = variables[i];
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
if (!variableInScope) {
|
|
346
|
+
return null;
|
|
347
|
+
}
|
|
348
|
+
let defInScope;
|
|
349
|
+
const { defs: defs2 } = variableInScope;
|
|
350
|
+
for (i = 0, j = defs2.length; i < j; i++) {
|
|
351
|
+
if (defs2[i].type === "ClassName" || defs2[i].type === "FunctionName" || defs2[i].type === "Variable") {
|
|
352
|
+
defInScope = defs2[i];
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
if (!defInScope) {
|
|
357
|
+
return null;
|
|
358
|
+
}
|
|
359
|
+
currentNode = defInScope.node.init || defInScope.node;
|
|
360
|
+
for (i = 0, j = componentPath.length; i < j; i++) {
|
|
361
|
+
if (!currentNode.properties) {
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
for (k = 0, l = currentNode.properties.length; k < l; k++) {
|
|
365
|
+
if (currentNode.properties[k].key.name === componentPath[i]) {
|
|
366
|
+
currentNode = currentNode.properties[k];
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (!currentNode) {
|
|
371
|
+
return null;
|
|
372
|
+
}
|
|
373
|
+
currentNode = currentNode.value;
|
|
374
|
+
}
|
|
375
|
+
return components.get(currentNode);
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
const detectionInstructions = {
|
|
379
|
+
ClassDeclaration: function(node2) {
|
|
380
|
+
if (!utils.isES6Component(node2)) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
components.add(node2, 2);
|
|
384
|
+
},
|
|
385
|
+
ClassProperty: function(_n) {
|
|
386
|
+
const node2 = utils.getParentComponent(_n);
|
|
387
|
+
if (!node2) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
components.add(node2, 2);
|
|
391
|
+
},
|
|
392
|
+
ObjectExpression: function(node2) {
|
|
393
|
+
if (!utils.isES5Component(node2)) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
components.add(node2, 2);
|
|
397
|
+
},
|
|
398
|
+
FunctionExpression: function(_n) {
|
|
399
|
+
const node2 = utils.getParentComponent(_n);
|
|
400
|
+
if (!node2) {
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
components.add(node2, 1);
|
|
404
|
+
},
|
|
405
|
+
FunctionDeclaration: function(_n) {
|
|
406
|
+
const node2 = utils.getParentComponent(_n);
|
|
407
|
+
if (!node2) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
components.add(node2, 1);
|
|
411
|
+
},
|
|
412
|
+
ArrowFunctionExpression: function(_n) {
|
|
413
|
+
const node2 = utils.getParentComponent(_n);
|
|
414
|
+
if (!node2) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
if (node2.expression && utils.isReturningJSX(node2)) {
|
|
418
|
+
components.add(node2, 2);
|
|
419
|
+
} else {
|
|
420
|
+
components.add(node2, 1);
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
ThisExpression: function(_n) {
|
|
424
|
+
const node2 = utils.getParentComponent(_n);
|
|
425
|
+
if (!node2 || !/Function/.test(node2.type)) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
components.add(node2, 0);
|
|
429
|
+
},
|
|
430
|
+
ReturnStatement: function(node2) {
|
|
431
|
+
if (!utils.isReturningJSX(node2)) {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
const parentNode = utils.getParentComponent(node2);
|
|
435
|
+
if (!parentNode) {
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
components.add(parentNode, 2);
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
const ruleInstructions = rule(context, components, utils);
|
|
442
|
+
const updatedRuleInstructions = { ...ruleInstructions };
|
|
443
|
+
Object.keys(detectionInstructions).forEach((instruction) => {
|
|
444
|
+
updatedRuleInstructions[instruction] = (node2) => {
|
|
445
|
+
detectionInstructions[instruction](node2);
|
|
446
|
+
return ruleInstructions[instruction] ? ruleInstructions[instruction](node2) : void 0;
|
|
447
|
+
};
|
|
448
|
+
});
|
|
449
|
+
return updatedRuleInstructions;
|
|
450
|
+
}
|
|
451
|
+
Components.detect = function(rule) {
|
|
452
|
+
return componentRule.bind(this, rule);
|
|
453
|
+
};
|
|
454
|
+
module.exports = Components;
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/util/stylesheet.js
|
|
459
|
+
var require_stylesheet = __commonJS({
|
|
460
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/util/stylesheet.js"(exports, module) {
|
|
461
|
+
init_cjs_shims();
|
|
462
|
+
function StyleSheets() {
|
|
463
|
+
this.styleSheets = {};
|
|
464
|
+
}
|
|
465
|
+
StyleSheets.prototype.add = function(styleSheetName, properties2) {
|
|
466
|
+
this.styleSheets[styleSheetName] = properties2;
|
|
467
|
+
};
|
|
468
|
+
StyleSheets.prototype.markAsUsed = function(fullyQualifiedName) {
|
|
469
|
+
const nameSplit = fullyQualifiedName.split(".");
|
|
470
|
+
const styleSheetName = nameSplit[0];
|
|
471
|
+
const styleSheetProperty = nameSplit[1];
|
|
472
|
+
if (this.styleSheets[styleSheetName]) {
|
|
473
|
+
this.styleSheets[styleSheetName] = this.styleSheets[styleSheetName].filter((property) => property.key.name !== styleSheetProperty);
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
StyleSheets.prototype.getUnusedReferences = function() {
|
|
477
|
+
return this.styleSheets;
|
|
478
|
+
};
|
|
479
|
+
StyleSheets.prototype.addColorLiterals = function(expressions) {
|
|
480
|
+
if (!this.colorLiterals) {
|
|
481
|
+
this.colorLiterals = [];
|
|
482
|
+
}
|
|
483
|
+
this.colorLiterals = this.colorLiterals.concat(expressions);
|
|
484
|
+
};
|
|
485
|
+
StyleSheets.prototype.getColorLiterals = function() {
|
|
486
|
+
return this.colorLiterals;
|
|
487
|
+
};
|
|
488
|
+
StyleSheets.prototype.addObjectExpressions = function(expressions) {
|
|
489
|
+
if (!this.objectExpressions) {
|
|
490
|
+
this.objectExpressions = [];
|
|
491
|
+
}
|
|
492
|
+
this.objectExpressions = this.objectExpressions.concat(expressions);
|
|
493
|
+
};
|
|
494
|
+
StyleSheets.prototype.getObjectExpressions = function() {
|
|
495
|
+
return this.objectExpressions;
|
|
496
|
+
};
|
|
497
|
+
var currentContent;
|
|
498
|
+
var getSourceCode = (node2) => currentContent.getSourceCode(node2).getText(node2);
|
|
499
|
+
var getStyleSheetObjectNames = (settings) => settings["react-native/style-sheet-object-names"] || ["StyleSheet"];
|
|
500
|
+
var astHelpers = {
|
|
501
|
+
containsStyleSheetObject: function(node2, objectNames) {
|
|
502
|
+
return Boolean(
|
|
503
|
+
node2 && node2.type === "CallExpression" && node2.callee && node2.callee.object && node2.callee.object.name && objectNames.includes(node2.callee.object.name)
|
|
504
|
+
);
|
|
505
|
+
},
|
|
506
|
+
containsCreateCall: function(node2) {
|
|
507
|
+
return Boolean(
|
|
508
|
+
node2 && node2.callee && node2.callee.property && node2.callee.property.name === "create"
|
|
509
|
+
);
|
|
510
|
+
},
|
|
511
|
+
isStyleSheetDeclaration: function(node2, settings) {
|
|
512
|
+
const objectNames = getStyleSheetObjectNames(settings);
|
|
513
|
+
return Boolean(
|
|
514
|
+
astHelpers.containsStyleSheetObject(node2, objectNames) && astHelpers.containsCreateCall(node2)
|
|
515
|
+
);
|
|
516
|
+
},
|
|
517
|
+
getStyleSheetName: function(node2) {
|
|
518
|
+
if (node2 && node2.parent && node2.parent.id) {
|
|
519
|
+
return node2.parent.id.name;
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
getStyleDeclarations: function(node2) {
|
|
523
|
+
if (node2 && node2.type === "CallExpression" && node2.arguments && node2.arguments[0] && node2.arguments[0].properties) {
|
|
524
|
+
return node2.arguments[0].properties.filter((property) => property.type === "Property");
|
|
525
|
+
}
|
|
526
|
+
return [];
|
|
527
|
+
},
|
|
528
|
+
getStyleDeclarationsChunks: function(node2) {
|
|
529
|
+
if (node2 && node2.type === "CallExpression" && node2.arguments && node2.arguments[0] && node2.arguments[0].properties) {
|
|
530
|
+
const { properties: properties2 } = node2.arguments[0];
|
|
531
|
+
const result = [];
|
|
532
|
+
let chunk = [];
|
|
533
|
+
for (let i = 0; i < properties2.length; i += 1) {
|
|
534
|
+
const property = properties2[i];
|
|
535
|
+
if (property.type === "Property") {
|
|
536
|
+
chunk.push(property);
|
|
537
|
+
} else if (chunk.length) {
|
|
538
|
+
result.push(chunk);
|
|
539
|
+
chunk = [];
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
if (chunk.length) {
|
|
543
|
+
result.push(chunk);
|
|
544
|
+
}
|
|
545
|
+
return result;
|
|
546
|
+
}
|
|
547
|
+
return [];
|
|
548
|
+
},
|
|
549
|
+
getPropertiesChunks: function(properties2) {
|
|
550
|
+
const result = [];
|
|
551
|
+
let chunk = [];
|
|
552
|
+
for (let i = 0; i < properties2.length; i += 1) {
|
|
553
|
+
const property = properties2[i];
|
|
554
|
+
if (property.type === "Property") {
|
|
555
|
+
chunk.push(property);
|
|
556
|
+
} else if (chunk.length) {
|
|
557
|
+
result.push(chunk);
|
|
558
|
+
chunk = [];
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (chunk.length) {
|
|
562
|
+
result.push(chunk);
|
|
563
|
+
}
|
|
564
|
+
return result;
|
|
565
|
+
},
|
|
566
|
+
getExpressionIdentifier: function(node2) {
|
|
567
|
+
if (node2) {
|
|
568
|
+
switch (node2.type) {
|
|
569
|
+
case "Identifier":
|
|
570
|
+
return node2.name;
|
|
571
|
+
case "Literal":
|
|
572
|
+
return node2.value;
|
|
573
|
+
case "TemplateLiteral":
|
|
574
|
+
return node2.quasis.reduce(
|
|
575
|
+
(result, quasi, index) => result + quasi.value.cooked + astHelpers.getExpressionIdentifier(node2.expressions[index]),
|
|
576
|
+
""
|
|
577
|
+
);
|
|
578
|
+
default:
|
|
579
|
+
return "";
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
return "";
|
|
583
|
+
},
|
|
584
|
+
getStylePropertyIdentifier: function(node2) {
|
|
585
|
+
if (node2 && node2.key) {
|
|
586
|
+
return astHelpers.getExpressionIdentifier(node2.key);
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
isStyleAttribute: function(node2) {
|
|
590
|
+
return Boolean(
|
|
591
|
+
node2.type === "JSXAttribute" && node2.name && node2.name.name && node2.name.name.toLowerCase().includes("style")
|
|
592
|
+
);
|
|
593
|
+
},
|
|
594
|
+
collectStyleObjectExpressions: function(node2, context) {
|
|
595
|
+
currentContent = context;
|
|
596
|
+
if (astHelpers.hasArrayOfStyleReferences(node2)) {
|
|
597
|
+
const styleReferenceContainers = node2.expression.elements;
|
|
598
|
+
return astHelpers.collectStyleObjectExpressionFromContainers(
|
|
599
|
+
styleReferenceContainers
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
if (node2 && node2.expression) {
|
|
603
|
+
return astHelpers.getStyleObjectExpressionFromNode(node2.expression);
|
|
604
|
+
}
|
|
605
|
+
return [];
|
|
606
|
+
},
|
|
607
|
+
collectColorLiterals: function(node2, context) {
|
|
608
|
+
if (!node2) {
|
|
609
|
+
return [];
|
|
610
|
+
}
|
|
611
|
+
currentContent = context;
|
|
612
|
+
if (astHelpers.hasArrayOfStyleReferences(node2)) {
|
|
613
|
+
const styleReferenceContainers = node2.expression.elements;
|
|
614
|
+
return astHelpers.collectColorLiteralsFromContainers(
|
|
615
|
+
styleReferenceContainers
|
|
616
|
+
);
|
|
617
|
+
}
|
|
618
|
+
if (node2.type === "ObjectExpression") {
|
|
619
|
+
return astHelpers.getColorLiteralsFromNode(node2);
|
|
620
|
+
}
|
|
621
|
+
return astHelpers.getColorLiteralsFromNode(node2.expression);
|
|
622
|
+
},
|
|
623
|
+
collectStyleObjectExpressionFromContainers: function(nodes) {
|
|
624
|
+
let objectExpressions = [];
|
|
625
|
+
nodes.forEach((node2) => {
|
|
626
|
+
objectExpressions = objectExpressions.concat(astHelpers.getStyleObjectExpressionFromNode(node2));
|
|
627
|
+
});
|
|
628
|
+
return objectExpressions;
|
|
629
|
+
},
|
|
630
|
+
collectColorLiteralsFromContainers: function(nodes) {
|
|
631
|
+
let colorLiterals = [];
|
|
632
|
+
nodes.forEach((node2) => {
|
|
633
|
+
colorLiterals = colorLiterals.concat(astHelpers.getColorLiteralsFromNode(node2));
|
|
634
|
+
});
|
|
635
|
+
return colorLiterals;
|
|
636
|
+
},
|
|
637
|
+
getStyleReferenceFromNode: function(node2) {
|
|
638
|
+
let styleReference;
|
|
639
|
+
let leftStyleReferences;
|
|
640
|
+
let rightStyleReferences;
|
|
641
|
+
if (!node2) {
|
|
642
|
+
return [];
|
|
643
|
+
}
|
|
644
|
+
switch (node2.type) {
|
|
645
|
+
case "MemberExpression":
|
|
646
|
+
styleReference = astHelpers.getStyleReferenceFromExpression(node2);
|
|
647
|
+
return [styleReference];
|
|
648
|
+
case "LogicalExpression":
|
|
649
|
+
leftStyleReferences = astHelpers.getStyleReferenceFromNode(node2.left);
|
|
650
|
+
rightStyleReferences = astHelpers.getStyleReferenceFromNode(node2.right);
|
|
651
|
+
return [].concat(leftStyleReferences).concat(rightStyleReferences);
|
|
652
|
+
case "ConditionalExpression":
|
|
653
|
+
leftStyleReferences = astHelpers.getStyleReferenceFromNode(node2.consequent);
|
|
654
|
+
rightStyleReferences = astHelpers.getStyleReferenceFromNode(node2.alternate);
|
|
655
|
+
return [].concat(leftStyleReferences).concat(rightStyleReferences);
|
|
656
|
+
default:
|
|
657
|
+
return [];
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
getStyleObjectExpressionFromNode: function(node2) {
|
|
661
|
+
let leftStyleObjectExpression;
|
|
662
|
+
let rightStyleObjectExpression;
|
|
663
|
+
if (!node2) {
|
|
664
|
+
return [];
|
|
665
|
+
}
|
|
666
|
+
if (node2.type === "ObjectExpression") {
|
|
667
|
+
return [astHelpers.getStyleObjectFromExpression(node2)];
|
|
668
|
+
}
|
|
669
|
+
switch (node2.type) {
|
|
670
|
+
case "LogicalExpression":
|
|
671
|
+
leftStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.left);
|
|
672
|
+
rightStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.right);
|
|
673
|
+
return [].concat(leftStyleObjectExpression).concat(rightStyleObjectExpression);
|
|
674
|
+
case "ConditionalExpression":
|
|
675
|
+
leftStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.consequent);
|
|
676
|
+
rightStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.alternate);
|
|
677
|
+
return [].concat(leftStyleObjectExpression).concat(rightStyleObjectExpression);
|
|
678
|
+
default:
|
|
679
|
+
return [];
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
getColorLiteralsFromNode: function(node2) {
|
|
683
|
+
let leftColorLiterals;
|
|
684
|
+
let rightColorLiterals;
|
|
685
|
+
if (!node2) {
|
|
686
|
+
return [];
|
|
687
|
+
}
|
|
688
|
+
if (node2.type === "ObjectExpression") {
|
|
689
|
+
return [astHelpers.getColorLiteralsFromExpression(node2)];
|
|
690
|
+
}
|
|
691
|
+
switch (node2.type) {
|
|
692
|
+
case "LogicalExpression":
|
|
693
|
+
leftColorLiterals = astHelpers.getColorLiteralsFromNode(node2.left);
|
|
694
|
+
rightColorLiterals = astHelpers.getColorLiteralsFromNode(node2.right);
|
|
695
|
+
return [].concat(leftColorLiterals).concat(rightColorLiterals);
|
|
696
|
+
case "ConditionalExpression":
|
|
697
|
+
leftColorLiterals = astHelpers.getColorLiteralsFromNode(node2.consequent);
|
|
698
|
+
rightColorLiterals = astHelpers.getColorLiteralsFromNode(node2.alternate);
|
|
699
|
+
return [].concat(leftColorLiterals).concat(rightColorLiterals);
|
|
700
|
+
default:
|
|
701
|
+
return [];
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
hasArrayOfStyleReferences: function(node2) {
|
|
705
|
+
return node2 && Boolean(
|
|
706
|
+
node2.type === "JSXExpressionContainer" && node2.expression && node2.expression.type === "ArrayExpression"
|
|
707
|
+
);
|
|
708
|
+
},
|
|
709
|
+
getStyleReferenceFromExpression: function(node2) {
|
|
710
|
+
const result = [];
|
|
711
|
+
const name3 = astHelpers.getObjectName(node2);
|
|
712
|
+
if (name3) {
|
|
713
|
+
result.push(name3);
|
|
714
|
+
}
|
|
715
|
+
const property = astHelpers.getPropertyName(node2);
|
|
716
|
+
if (property) {
|
|
717
|
+
result.push(property);
|
|
718
|
+
}
|
|
719
|
+
return result.join(".");
|
|
720
|
+
},
|
|
721
|
+
getStyleObjectFromExpression: function(node2) {
|
|
722
|
+
const obj = {};
|
|
723
|
+
let invalid = false;
|
|
724
|
+
if (node2.properties && node2.properties.length) {
|
|
725
|
+
node2.properties.forEach((p) => {
|
|
726
|
+
if (!p.value || !p.key) {
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
if (p.value.type === "Literal") {
|
|
730
|
+
invalid = true;
|
|
731
|
+
obj[p.key.name] = p.value.value;
|
|
732
|
+
} else if (p.value.type === "ConditionalExpression") {
|
|
733
|
+
const innerNode = p.value;
|
|
734
|
+
if (innerNode.consequent.type === "Literal" || innerNode.alternate.type === "Literal") {
|
|
735
|
+
invalid = true;
|
|
736
|
+
obj[p.key.name] = getSourceCode(innerNode);
|
|
737
|
+
}
|
|
738
|
+
} else if (p.value.type === "UnaryExpression" && p.value.operator === "-" && p.value.argument.type === "Literal") {
|
|
739
|
+
invalid = true;
|
|
740
|
+
obj[p.key.name] = -1 * p.value.argument.value;
|
|
741
|
+
} else if (p.value.type === "UnaryExpression" && p.value.operator === "+" && p.value.argument.type === "Literal") {
|
|
742
|
+
invalid = true;
|
|
743
|
+
obj[p.key.name] = p.value.argument.value;
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
return invalid ? { expression: obj, node: node2 } : void 0;
|
|
748
|
+
},
|
|
749
|
+
getColorLiteralsFromExpression: function(node2) {
|
|
750
|
+
const obj = {};
|
|
751
|
+
let invalid = false;
|
|
752
|
+
if (node2.properties && node2.properties.length) {
|
|
753
|
+
node2.properties.forEach((p) => {
|
|
754
|
+
if (p.key && p.key.name && p.key.name.toLowerCase().indexOf("color") !== -1) {
|
|
755
|
+
if (p.value.type === "Literal") {
|
|
756
|
+
invalid = true;
|
|
757
|
+
obj[p.key.name] = p.value.value;
|
|
758
|
+
} else if (p.value.type === "ConditionalExpression") {
|
|
759
|
+
const innerNode = p.value;
|
|
760
|
+
if (innerNode.consequent.type === "Literal" || innerNode.alternate.type === "Literal") {
|
|
761
|
+
invalid = true;
|
|
762
|
+
obj[p.key.name] = getSourceCode(innerNode);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
return invalid ? { expression: obj, node: node2 } : void 0;
|
|
769
|
+
},
|
|
770
|
+
getObjectName: function(node2) {
|
|
771
|
+
if (node2 && node2.object && node2.object.name) {
|
|
772
|
+
return node2.object.name;
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
getPropertyName: function(node2) {
|
|
776
|
+
if (node2 && node2.property && node2.property.name) {
|
|
777
|
+
return node2.property.name;
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
getPotentialStyleReferenceFromMemberExpression: function(node2) {
|
|
781
|
+
if (node2 && node2.object && node2.object.type === "Identifier" && node2.object.name && node2.property && node2.property.type === "Identifier" && node2.property.name && node2.parent.type !== "MemberExpression") {
|
|
782
|
+
return [node2.object.name, node2.property.name].join(".");
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
isEitherShortHand: function(property1, property2) {
|
|
786
|
+
const shorthands = ["margin", "padding", "border", "flex"];
|
|
787
|
+
if (shorthands.includes(property1)) {
|
|
788
|
+
return property2.startsWith(property1);
|
|
789
|
+
}
|
|
790
|
+
if (shorthands.includes(property2)) {
|
|
791
|
+
return property1.startsWith(property2);
|
|
792
|
+
}
|
|
793
|
+
return false;
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
module.exports.astHelpers = astHelpers;
|
|
797
|
+
module.exports.StyleSheets = StyleSheets;
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
|
|
801
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-unused-styles.js
|
|
802
|
+
var require_no_unused_styles = __commonJS({
|
|
803
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-unused-styles.js"(exports, module) {
|
|
804
|
+
init_cjs_shims();
|
|
805
|
+
var Components = require_Components();
|
|
806
|
+
var styleSheet = require_stylesheet();
|
|
807
|
+
var { StyleSheets } = styleSheet;
|
|
808
|
+
var { astHelpers } = styleSheet;
|
|
809
|
+
var create = Components.detect((context, components) => {
|
|
810
|
+
const styleSheets = new StyleSheets();
|
|
811
|
+
const styleReferences = /* @__PURE__ */ new Set();
|
|
812
|
+
function reportUnusedStyles(unusedStyles) {
|
|
813
|
+
Object.keys(unusedStyles).forEach((key) => {
|
|
814
|
+
if ({}.hasOwnProperty.call(unusedStyles, key)) {
|
|
815
|
+
const styles = unusedStyles[key];
|
|
816
|
+
styles.forEach((node2) => {
|
|
817
|
+
const message2 = [
|
|
818
|
+
"Unused style detected: ",
|
|
819
|
+
key,
|
|
820
|
+
".",
|
|
821
|
+
node2.key.name
|
|
822
|
+
].join("");
|
|
823
|
+
context.report(node2, message2);
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
return {
|
|
829
|
+
MemberExpression: function(node2) {
|
|
830
|
+
const styleRef = astHelpers.getPotentialStyleReferenceFromMemberExpression(node2);
|
|
831
|
+
if (styleRef) {
|
|
832
|
+
styleReferences.add(styleRef);
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
CallExpression: function(node2) {
|
|
836
|
+
if (astHelpers.isStyleSheetDeclaration(node2, context.settings)) {
|
|
837
|
+
const styleSheetName = astHelpers.getStyleSheetName(node2);
|
|
838
|
+
const styles = astHelpers.getStyleDeclarations(node2);
|
|
839
|
+
styleSheets.add(styleSheetName, styles);
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"Program:exit": function() {
|
|
843
|
+
const list = components.all();
|
|
844
|
+
if (Object.keys(list).length > 0) {
|
|
845
|
+
styleReferences.forEach((reference) => {
|
|
846
|
+
styleSheets.markAsUsed(reference);
|
|
847
|
+
});
|
|
848
|
+
reportUnusedStyles(styleSheets.getUnusedReferences());
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
});
|
|
853
|
+
module.exports = {
|
|
854
|
+
meta: {
|
|
855
|
+
schema: []
|
|
856
|
+
},
|
|
857
|
+
create
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-inline-styles.js
|
|
863
|
+
var require_no_inline_styles = __commonJS({
|
|
864
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-inline-styles.js"(exports, module) {
|
|
865
|
+
init_cjs_shims();
|
|
866
|
+
var util = __require("util");
|
|
867
|
+
var Components = require_Components();
|
|
868
|
+
var styleSheet = require_stylesheet();
|
|
869
|
+
var { StyleSheets } = styleSheet;
|
|
870
|
+
var { astHelpers } = styleSheet;
|
|
871
|
+
var create = Components.detect((context) => {
|
|
872
|
+
const styleSheets = new StyleSheets();
|
|
873
|
+
function reportInlineStyles(inlineStyles) {
|
|
874
|
+
if (inlineStyles) {
|
|
875
|
+
inlineStyles.forEach((style) => {
|
|
876
|
+
if (style) {
|
|
877
|
+
const expression = util.inspect(style.expression);
|
|
878
|
+
context.report({
|
|
879
|
+
node: style.node,
|
|
880
|
+
message: "Inline style: {{expression}}",
|
|
881
|
+
data: { expression }
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
return {
|
|
888
|
+
JSXAttribute: (node2) => {
|
|
889
|
+
if (astHelpers.isStyleAttribute(node2)) {
|
|
890
|
+
const styles = astHelpers.collectStyleObjectExpressions(node2.value, context);
|
|
891
|
+
styleSheets.addObjectExpressions(styles);
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
"Program:exit": () => reportInlineStyles(styleSheets.getObjectExpressions())
|
|
895
|
+
};
|
|
896
|
+
});
|
|
897
|
+
module.exports = {
|
|
898
|
+
meta: {
|
|
899
|
+
schema: []
|
|
900
|
+
},
|
|
901
|
+
create
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
|
|
906
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-color-literals.js
|
|
907
|
+
var require_no_color_literals = __commonJS({
|
|
908
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-color-literals.js"(exports, module) {
|
|
909
|
+
init_cjs_shims();
|
|
910
|
+
var util = __require("util");
|
|
911
|
+
var Components = require_Components();
|
|
912
|
+
var styleSheet = require_stylesheet();
|
|
913
|
+
var { StyleSheets } = styleSheet;
|
|
914
|
+
var { astHelpers } = styleSheet;
|
|
915
|
+
var create = Components.detect((context) => {
|
|
916
|
+
const styleSheets = new StyleSheets();
|
|
917
|
+
function reportColorLiterals(colorLiterals) {
|
|
918
|
+
if (colorLiterals) {
|
|
919
|
+
colorLiterals.forEach((style) => {
|
|
920
|
+
if (style) {
|
|
921
|
+
const expression = util.inspect(style.expression);
|
|
922
|
+
context.report({
|
|
923
|
+
node: style.node,
|
|
924
|
+
message: "Color literal: {{expression}}",
|
|
925
|
+
data: { expression }
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return {
|
|
932
|
+
CallExpression: (node2) => {
|
|
933
|
+
if (astHelpers.isStyleSheetDeclaration(node2, context.settings)) {
|
|
934
|
+
const styles = astHelpers.getStyleDeclarations(node2);
|
|
935
|
+
if (styles) {
|
|
936
|
+
styles.forEach((style) => {
|
|
937
|
+
const literals = astHelpers.collectColorLiterals(style.value, context);
|
|
938
|
+
styleSheets.addColorLiterals(literals);
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
JSXAttribute: (node2) => {
|
|
944
|
+
if (astHelpers.isStyleAttribute(node2)) {
|
|
945
|
+
const literals = astHelpers.collectColorLiterals(node2.value, context);
|
|
946
|
+
styleSheets.addColorLiterals(literals);
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"Program:exit": () => reportColorLiterals(styleSheets.getColorLiterals())
|
|
950
|
+
};
|
|
951
|
+
});
|
|
952
|
+
module.exports = {
|
|
953
|
+
meta: {
|
|
954
|
+
schema: []
|
|
955
|
+
},
|
|
956
|
+
create
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/sort-styles.js
|
|
962
|
+
var require_sort_styles = __commonJS({
|
|
963
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/sort-styles.js"(exports, module) {
|
|
964
|
+
init_cjs_shims();
|
|
965
|
+
var { astHelpers } = require_stylesheet();
|
|
966
|
+
var {
|
|
967
|
+
getStyleDeclarationsChunks,
|
|
968
|
+
getPropertiesChunks,
|
|
969
|
+
getStylePropertyIdentifier,
|
|
970
|
+
isStyleSheetDeclaration,
|
|
971
|
+
isEitherShortHand
|
|
972
|
+
} = astHelpers;
|
|
973
|
+
function create(context) {
|
|
974
|
+
const order = context.options[0] || "asc";
|
|
975
|
+
const options = context.options[1] || {};
|
|
976
|
+
const { ignoreClassNames } = options;
|
|
977
|
+
const { ignoreStyleProperties } = options;
|
|
978
|
+
const isValidOrder = order === "asc" ? (a, b) => a <= b : (a, b) => a >= b;
|
|
979
|
+
const sourceCode = context.sourceCode ?? context.getSourceCode();
|
|
980
|
+
function sort(array2) {
|
|
981
|
+
return [].concat(array2).sort((a, b) => {
|
|
982
|
+
const identifierA = getStylePropertyIdentifier(a);
|
|
983
|
+
const identifierB = getStylePropertyIdentifier(b);
|
|
984
|
+
let sortOrder = 0;
|
|
985
|
+
if (isEitherShortHand(identifierA, identifierB)) {
|
|
986
|
+
return a.range[0] - b.range[0];
|
|
987
|
+
}
|
|
988
|
+
if (identifierA < identifierB) {
|
|
989
|
+
sortOrder = -1;
|
|
990
|
+
} else if (identifierA > identifierB) {
|
|
991
|
+
sortOrder = 1;
|
|
992
|
+
}
|
|
993
|
+
return sortOrder * (order === "asc" ? 1 : -1);
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
function report(array2, type, node2, prev, current) {
|
|
997
|
+
const currentName = getStylePropertyIdentifier(current);
|
|
998
|
+
const prevName = getStylePropertyIdentifier(prev);
|
|
999
|
+
const hasComments = array2.map((prop) => [...sourceCode.getCommentsBefore(prop), ...sourceCode.getCommentsAfter(prop)]).reduce(
|
|
1000
|
+
(hasComment, comment) => hasComment || comment.length > 0,
|
|
1001
|
+
false
|
|
1002
|
+
);
|
|
1003
|
+
context.report({
|
|
1004
|
+
node: node2,
|
|
1005
|
+
message: `Expected ${type} to be in ${order}ending order. '${currentName}' should be before '${prevName}'.`,
|
|
1006
|
+
loc: current.key.loc,
|
|
1007
|
+
fix: hasComments ? void 0 : (fixer) => {
|
|
1008
|
+
const sortedArray = sort(array2);
|
|
1009
|
+
return array2.map((item, i) => {
|
|
1010
|
+
if (item !== sortedArray[i]) {
|
|
1011
|
+
return fixer.replaceText(
|
|
1012
|
+
item,
|
|
1013
|
+
sourceCode.getText(sortedArray[i])
|
|
1014
|
+
);
|
|
1015
|
+
}
|
|
1016
|
+
return null;
|
|
1017
|
+
}).filter(Boolean);
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
function checkIsSorted(array2, arrayName, node2) {
|
|
1022
|
+
for (let i = 1; i < array2.length; i += 1) {
|
|
1023
|
+
const previous = array2[i - 1];
|
|
1024
|
+
const current = array2[i];
|
|
1025
|
+
if (previous.type !== "Property" || current.type !== "Property") {
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
const prevName = getStylePropertyIdentifier(previous);
|
|
1029
|
+
const currentName = getStylePropertyIdentifier(current);
|
|
1030
|
+
const oneIsShorthandForTheOther = arrayName === "style properties" && isEitherShortHand(prevName, currentName);
|
|
1031
|
+
if (!oneIsShorthandForTheOther && !isValidOrder(prevName, currentName)) {
|
|
1032
|
+
return report(array2, arrayName, node2, previous, current);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
return {
|
|
1037
|
+
CallExpression: function(node2) {
|
|
1038
|
+
if (!isStyleSheetDeclaration(node2, context.settings)) {
|
|
1039
|
+
return;
|
|
1040
|
+
}
|
|
1041
|
+
const classDefinitionsChunks = getStyleDeclarationsChunks(node2);
|
|
1042
|
+
if (!ignoreClassNames) {
|
|
1043
|
+
classDefinitionsChunks.forEach((classDefinitions) => {
|
|
1044
|
+
checkIsSorted(classDefinitions, "class names", node2);
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
if (ignoreStyleProperties) return;
|
|
1048
|
+
classDefinitionsChunks.forEach((classDefinitions) => {
|
|
1049
|
+
classDefinitions.forEach((classDefinition) => {
|
|
1050
|
+
const styleProperties = classDefinition.value.properties;
|
|
1051
|
+
if (!styleProperties || styleProperties.length < 2) {
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
const stylePropertyChunks = getPropertiesChunks(styleProperties);
|
|
1055
|
+
stylePropertyChunks.forEach((stylePropertyChunk) => {
|
|
1056
|
+
checkIsSorted(stylePropertyChunk, "style properties", node2);
|
|
1057
|
+
});
|
|
1058
|
+
});
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
module.exports = {
|
|
1064
|
+
meta: {
|
|
1065
|
+
fixable: "code",
|
|
1066
|
+
schema: [
|
|
1067
|
+
{
|
|
1068
|
+
enum: ["asc", "desc"]
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
type: "object",
|
|
1072
|
+
properties: {
|
|
1073
|
+
ignoreClassNames: {
|
|
1074
|
+
type: "boolean"
|
|
1075
|
+
},
|
|
1076
|
+
ignoreStyleProperties: {
|
|
1077
|
+
type: "boolean"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
additionalProperties: false
|
|
1081
|
+
}
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1084
|
+
create
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
|
|
1089
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/split-platform-components.js
|
|
1090
|
+
var require_split_platform_components = __commonJS({
|
|
1091
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/split-platform-components.js"(exports, module) {
|
|
1092
|
+
init_cjs_shims();
|
|
1093
|
+
function create(context) {
|
|
1094
|
+
let reactComponents = [];
|
|
1095
|
+
const androidMessage = "Android components should be placed in android files";
|
|
1096
|
+
const iosMessage = "IOS components should be placed in ios files";
|
|
1097
|
+
const conflictMessage = "IOS and Android components can't be mixed";
|
|
1098
|
+
const iosPathRegex = context.options[0] && context.options[0].iosPathRegex ? new RegExp(context.options[0].iosPathRegex) : /\.ios\.[j|t]sx?$/;
|
|
1099
|
+
const androidPathRegex = context.options[0] && context.options[0].androidPathRegex ? new RegExp(context.options[0].androidPathRegex) : /\.android\.[j|t]sx?$/;
|
|
1100
|
+
function getName(node2) {
|
|
1101
|
+
if (node2.type === "Property") {
|
|
1102
|
+
const key = node2.key || node2.argument;
|
|
1103
|
+
return key.type === "Identifier" ? key.name : key.value;
|
|
1104
|
+
}
|
|
1105
|
+
if (node2.type === "Identifier") {
|
|
1106
|
+
return node2.name;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
function hasNodeWithName(nodes, name3) {
|
|
1110
|
+
return nodes.some((node2) => {
|
|
1111
|
+
const nodeName = getName(node2);
|
|
1112
|
+
return nodeName && nodeName.includes(name3);
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
function reportErrors(components, filename) {
|
|
1116
|
+
const containsAndroidAndIOS = hasNodeWithName(components, "IOS") && hasNodeWithName(components, "Android");
|
|
1117
|
+
components.forEach((node2) => {
|
|
1118
|
+
const propName = getName(node2);
|
|
1119
|
+
if (propName.includes("IOS") && !filename.match(iosPathRegex)) {
|
|
1120
|
+
context.report(node2, containsAndroidAndIOS ? conflictMessage : iosMessage);
|
|
1121
|
+
}
|
|
1122
|
+
if (propName.includes("Android") && !filename.match(androidPathRegex)) {
|
|
1123
|
+
context.report(node2, containsAndroidAndIOS ? conflictMessage : androidMessage);
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
return {
|
|
1128
|
+
VariableDeclarator: function(node2) {
|
|
1129
|
+
const destructuring = node2.init && node2.id && node2.id.type === "ObjectPattern";
|
|
1130
|
+
const statelessDestructuring = destructuring && node2.init.name === "React";
|
|
1131
|
+
if (destructuring && statelessDestructuring) {
|
|
1132
|
+
reactComponents = reactComponents.concat(node2.id.properties);
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
ImportDeclaration: function(node2) {
|
|
1136
|
+
if (node2.source.value === "react-native") {
|
|
1137
|
+
node2.specifiers.forEach((importSpecifier) => {
|
|
1138
|
+
if (importSpecifier.type === "ImportSpecifier") {
|
|
1139
|
+
reactComponents = reactComponents.concat(importSpecifier.imported);
|
|
1140
|
+
}
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"Program:exit": function() {
|
|
1145
|
+
const filename = context.getFilename();
|
|
1146
|
+
reportErrors(reactComponents, filename);
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
module.exports = {
|
|
1151
|
+
meta: {
|
|
1152
|
+
fixable: "code",
|
|
1153
|
+
schema: [{
|
|
1154
|
+
type: "object",
|
|
1155
|
+
properties: {
|
|
1156
|
+
androidPathRegex: {
|
|
1157
|
+
type: "string"
|
|
1158
|
+
},
|
|
1159
|
+
iosPathRegex: {
|
|
1160
|
+
type: "string"
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
additionalProperties: false
|
|
1164
|
+
}]
|
|
1165
|
+
},
|
|
1166
|
+
create
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
|
|
1171
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-raw-text.js
|
|
1172
|
+
var require_no_raw_text = __commonJS({
|
|
1173
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-raw-text.js"(exports, module) {
|
|
1174
|
+
init_cjs_shims();
|
|
1175
|
+
var elementName = (node2) => {
|
|
1176
|
+
const reversedIdentifiers = [];
|
|
1177
|
+
if (node2.type === "JSXElement" && node2.openingElement.type === "JSXOpeningElement") {
|
|
1178
|
+
let object2 = node2.openingElement.name;
|
|
1179
|
+
while (object2.type === "JSXMemberExpression") {
|
|
1180
|
+
if (object2.property.type === "JSXIdentifier") {
|
|
1181
|
+
reversedIdentifiers.push(object2.property.name);
|
|
1182
|
+
}
|
|
1183
|
+
object2 = object2.object;
|
|
1184
|
+
}
|
|
1185
|
+
if (object2.type === "JSXIdentifier") {
|
|
1186
|
+
reversedIdentifiers.push(object2.name);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
return reversedIdentifiers.reverse().join(".");
|
|
1190
|
+
};
|
|
1191
|
+
var hasAllowedParent = (parent, allowedElements) => {
|
|
1192
|
+
let curNode = parent;
|
|
1193
|
+
while (curNode) {
|
|
1194
|
+
if (curNode.type === "JSXElement") {
|
|
1195
|
+
const name3 = elementName(curNode);
|
|
1196
|
+
if (allowedElements.includes(name3)) {
|
|
1197
|
+
return true;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
curNode = curNode.parent;
|
|
1201
|
+
}
|
|
1202
|
+
return false;
|
|
1203
|
+
};
|
|
1204
|
+
function create(context) {
|
|
1205
|
+
const options = context.options[0] || {};
|
|
1206
|
+
const report = (node2) => {
|
|
1207
|
+
const errorValue = node2.type === "TemplateLiteral" ? `TemplateLiteral: ${node2.expressions[0].name}` : node2.value.trim();
|
|
1208
|
+
const formattedErrorValue = errorValue.length > 0 ? `Raw text (${errorValue})` : "Whitespace(s)";
|
|
1209
|
+
context.report({
|
|
1210
|
+
node: node2,
|
|
1211
|
+
message: `${formattedErrorValue} cannot be used outside of a <Text> tag`
|
|
1212
|
+
});
|
|
1213
|
+
};
|
|
1214
|
+
const skippedElements = options.skip ? options.skip : [];
|
|
1215
|
+
const allowedElements = ["Text", "TSpan", "StyledText", "Animated.Text"].concat(skippedElements);
|
|
1216
|
+
const hasOnlyLineBreak = (value) => /^[\r\n\t\f\v]+$/.test(value.replace(/ /g, ""));
|
|
1217
|
+
const getValidation = (node2) => !hasAllowedParent(node2.parent, allowedElements);
|
|
1218
|
+
return {
|
|
1219
|
+
Literal(node2) {
|
|
1220
|
+
const parentType = node2.parent.type;
|
|
1221
|
+
const onlyFor = ["JSXExpressionContainer", "JSXElement"];
|
|
1222
|
+
if (typeof node2.value !== "string" || hasOnlyLineBreak(node2.value) || !onlyFor.includes(parentType) || node2.parent.parent && node2.parent.parent.type === "JSXAttribute") return;
|
|
1223
|
+
const isStringLiteral = parentType === "JSXExpressionContainer";
|
|
1224
|
+
if (getValidation(isStringLiteral ? node2.parent : node2)) {
|
|
1225
|
+
report(node2);
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
JSXText(node2) {
|
|
1229
|
+
if (typeof node2.value !== "string" || hasOnlyLineBreak(node2.value)) return;
|
|
1230
|
+
if (getValidation(node2)) {
|
|
1231
|
+
report(node2);
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
TemplateLiteral(node2) {
|
|
1235
|
+
if (node2.parent.type !== "JSXExpressionContainer" || node2.parent.parent && node2.parent.parent.type === "JSXAttribute") return;
|
|
1236
|
+
if (getValidation(node2.parent)) {
|
|
1237
|
+
report(node2);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
module.exports = {
|
|
1243
|
+
meta: {
|
|
1244
|
+
schema: [
|
|
1245
|
+
{
|
|
1246
|
+
type: "object",
|
|
1247
|
+
properties: {
|
|
1248
|
+
skip: {
|
|
1249
|
+
type: "array",
|
|
1250
|
+
items: {
|
|
1251
|
+
type: "string"
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
additionalProperties: false
|
|
1256
|
+
}
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1259
|
+
create
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
|
|
1264
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-single-element-style-arrays.js
|
|
1265
|
+
var require_no_single_element_style_arrays = __commonJS({
|
|
1266
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/rules/no-single-element-style-arrays.js"(exports, module) {
|
|
1267
|
+
init_cjs_shims();
|
|
1268
|
+
module.exports = {
|
|
1269
|
+
meta: {
|
|
1270
|
+
docs: {
|
|
1271
|
+
description: "Disallow single element style arrays. These cause unnecessary re-renders as the identity of the array always changes",
|
|
1272
|
+
category: "Stylistic Issues",
|
|
1273
|
+
recommended: false,
|
|
1274
|
+
url: ""
|
|
1275
|
+
},
|
|
1276
|
+
fixable: "code"
|
|
1277
|
+
},
|
|
1278
|
+
create(context) {
|
|
1279
|
+
function reportNode(JSXExpressionNode) {
|
|
1280
|
+
context.report({
|
|
1281
|
+
node: JSXExpressionNode,
|
|
1282
|
+
message: "Single element style arrays are not necessary and cause unnecessary re-renders",
|
|
1283
|
+
fix(fixer) {
|
|
1284
|
+
const realStyleNode = JSXExpressionNode.value.expression.elements[0];
|
|
1285
|
+
const styleSource = (context.sourceCode ?? context.getSourceCode()).getText(realStyleNode);
|
|
1286
|
+
return fixer.replaceText(JSXExpressionNode.value.expression, styleSource);
|
|
1287
|
+
}
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
return {
|
|
1291
|
+
JSXAttribute(node2) {
|
|
1292
|
+
if (node2.name.name !== "style") return;
|
|
1293
|
+
if (!node2.value.expression) return;
|
|
1294
|
+
if (node2.value.expression.type !== "ArrayExpression") return;
|
|
1295
|
+
if (node2.value.expression.elements.length === 1) {
|
|
1296
|
+
reportNode(node2);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
|
|
1305
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/index.js
|
|
1306
|
+
var require_eslint_plugin_react_native = __commonJS({
|
|
1307
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/index.js"(exports, module) {
|
|
1308
|
+
init_cjs_shims();
|
|
1309
|
+
var allRules = {
|
|
1310
|
+
"no-unused-styles": require_no_unused_styles(),
|
|
1311
|
+
"no-inline-styles": require_no_inline_styles(),
|
|
1312
|
+
"no-color-literals": require_no_color_literals(),
|
|
1313
|
+
"sort-styles": require_sort_styles(),
|
|
1314
|
+
"split-platform-components": require_split_platform_components(),
|
|
1315
|
+
"no-raw-text": require_no_raw_text(),
|
|
1316
|
+
"no-single-element-style-arrays": require_no_single_element_style_arrays()
|
|
1317
|
+
};
|
|
1318
|
+
function configureAsError(rules5) {
|
|
1319
|
+
const result = {};
|
|
1320
|
+
for (const key in rules5) {
|
|
1321
|
+
if (!rules5.hasOwnProperty(key)) {
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
result["react-native/" + key] = 2;
|
|
1325
|
+
}
|
|
1326
|
+
return result;
|
|
1327
|
+
}
|
|
1328
|
+
var allRulesConfig = configureAsError(allRules);
|
|
1329
|
+
module.exports = {
|
|
1330
|
+
deprecatedRules: {},
|
|
1331
|
+
rules: allRules,
|
|
1332
|
+
rulesConfig: {
|
|
1333
|
+
"no-unused-styles": 0,
|
|
1334
|
+
"no-inline-styles": 0,
|
|
1335
|
+
"no-color-literals": 0,
|
|
1336
|
+
"sort-styles": 0,
|
|
1337
|
+
"split-platform-components": 0,
|
|
1338
|
+
"no-raw-text": 0,
|
|
1339
|
+
"no-single-element-style-arrays": 0
|
|
1340
|
+
},
|
|
1341
|
+
environments: {
|
|
1342
|
+
"react-native": {
|
|
1343
|
+
globals: __require("eslint-plugin-react-native-globals").environments.all.globals
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
configs: {
|
|
1347
|
+
all: {
|
|
1348
|
+
plugins: [
|
|
1349
|
+
"react-native"
|
|
1350
|
+
],
|
|
1351
|
+
parserOptions: {
|
|
1352
|
+
ecmaFeatures: {
|
|
1353
|
+
jsx: true
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
rules: allRulesConfig
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
|
|
143
1363
|
// ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
|
|
144
1364
|
var require_Debug = __commonJS({
|
|
145
1365
|
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
|
|
@@ -501,7 +1721,7 @@ var require_lib = __commonJS({
|
|
|
501
1721
|
defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
|
|
502
1722
|
tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
|
|
503
1723
|
});
|
|
504
|
-
var
|
|
1724
|
+
var plugin7 = {
|
|
505
1725
|
rules: {
|
|
506
1726
|
// NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
|
|
507
1727
|
// from the NPM package name, and then appending this string.
|
|
@@ -662,7 +1882,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
662
1882
|
}
|
|
663
1883
|
}
|
|
664
1884
|
};
|
|
665
|
-
module.exports =
|
|
1885
|
+
module.exports = plugin7;
|
|
666
1886
|
}
|
|
667
1887
|
});
|
|
668
1888
|
|
|
@@ -5894,10 +7114,10 @@ init_cjs_shims();
|
|
|
5894
7114
|
// src/plugins.ts
|
|
5895
7115
|
init_cjs_shims();
|
|
5896
7116
|
|
|
5897
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7117
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/index.js
|
|
5898
7118
|
init_cjs_shims();
|
|
5899
7119
|
|
|
5900
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7120
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/electron.js
|
|
5901
7121
|
init_cjs_shims();
|
|
5902
7122
|
var electron_default = {
|
|
5903
7123
|
settings: {
|
|
@@ -5905,7 +7125,7 @@ var electron_default = {
|
|
|
5905
7125
|
}
|
|
5906
7126
|
};
|
|
5907
7127
|
|
|
5908
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7128
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/errors.js
|
|
5909
7129
|
init_cjs_shims();
|
|
5910
7130
|
var errors_default = {
|
|
5911
7131
|
plugins: ["import-x"],
|
|
@@ -5918,7 +7138,7 @@ var errors_default = {
|
|
|
5918
7138
|
}
|
|
5919
7139
|
};
|
|
5920
7140
|
|
|
5921
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7141
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/electron.js
|
|
5922
7142
|
init_cjs_shims();
|
|
5923
7143
|
var electron_default2 = {
|
|
5924
7144
|
settings: {
|
|
@@ -5926,7 +7146,7 @@ var electron_default2 = {
|
|
|
5926
7146
|
}
|
|
5927
7147
|
};
|
|
5928
7148
|
|
|
5929
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7149
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/errors.js
|
|
5930
7150
|
init_cjs_shims();
|
|
5931
7151
|
var errors_default2 = {
|
|
5932
7152
|
rules: {
|
|
@@ -5938,7 +7158,7 @@ var errors_default2 = {
|
|
|
5938
7158
|
}
|
|
5939
7159
|
};
|
|
5940
7160
|
|
|
5941
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7161
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/react-native.js
|
|
5942
7162
|
init_cjs_shims();
|
|
5943
7163
|
var react_native_default = {
|
|
5944
7164
|
settings: {
|
|
@@ -5950,7 +7170,7 @@ var react_native_default = {
|
|
|
5950
7170
|
}
|
|
5951
7171
|
};
|
|
5952
7172
|
|
|
5953
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7173
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/react.js
|
|
5954
7174
|
init_cjs_shims();
|
|
5955
7175
|
var react_default = {
|
|
5956
7176
|
settings: {
|
|
@@ -5965,7 +7185,7 @@ var react_default = {
|
|
|
5965
7185
|
}
|
|
5966
7186
|
};
|
|
5967
7187
|
|
|
5968
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7188
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/recommended.js
|
|
5969
7189
|
init_cjs_shims();
|
|
5970
7190
|
var recommended_default2 = {
|
|
5971
7191
|
rules: {
|
|
@@ -5980,7 +7200,7 @@ var recommended_default2 = {
|
|
|
5980
7200
|
}
|
|
5981
7201
|
};
|
|
5982
7202
|
|
|
5983
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7203
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/stage-0.js
|
|
5984
7204
|
init_cjs_shims();
|
|
5985
7205
|
var stage_0_default = {
|
|
5986
7206
|
rules: {
|
|
@@ -5988,7 +7208,7 @@ var stage_0_default = {
|
|
|
5988
7208
|
}
|
|
5989
7209
|
};
|
|
5990
7210
|
|
|
5991
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7211
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/typescript.js
|
|
5992
7212
|
init_cjs_shims();
|
|
5993
7213
|
var typeScriptExtensions = [".ts", ".tsx", ".cts", ".mts"];
|
|
5994
7214
|
var allExtensions = [
|
|
@@ -6014,7 +7234,7 @@ var typescript_default = {
|
|
|
6014
7234
|
}
|
|
6015
7235
|
};
|
|
6016
7236
|
|
|
6017
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7237
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/flat/warnings.js
|
|
6018
7238
|
init_cjs_shims();
|
|
6019
7239
|
var warnings_default = {
|
|
6020
7240
|
rules: {
|
|
@@ -6025,7 +7245,7 @@ var warnings_default = {
|
|
|
6025
7245
|
}
|
|
6026
7246
|
};
|
|
6027
7247
|
|
|
6028
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7248
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/react-native.js
|
|
6029
7249
|
init_cjs_shims();
|
|
6030
7250
|
var react_native_default2 = {
|
|
6031
7251
|
settings: {
|
|
@@ -6037,7 +7257,7 @@ var react_native_default2 = {
|
|
|
6037
7257
|
}
|
|
6038
7258
|
};
|
|
6039
7259
|
|
|
6040
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7260
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/react.js
|
|
6041
7261
|
init_cjs_shims();
|
|
6042
7262
|
var react_default2 = {
|
|
6043
7263
|
settings: {
|
|
@@ -6050,7 +7270,7 @@ var react_default2 = {
|
|
|
6050
7270
|
}
|
|
6051
7271
|
};
|
|
6052
7272
|
|
|
6053
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7273
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/recommended.js
|
|
6054
7274
|
init_cjs_shims();
|
|
6055
7275
|
var recommended_default3 = {
|
|
6056
7276
|
plugins: ["import-x"],
|
|
@@ -6070,7 +7290,7 @@ var recommended_default3 = {
|
|
|
6070
7290
|
}
|
|
6071
7291
|
};
|
|
6072
7292
|
|
|
6073
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7293
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/stage-0.js
|
|
6074
7294
|
init_cjs_shims();
|
|
6075
7295
|
var stage_0_default2 = {
|
|
6076
7296
|
plugins: ["import-x"],
|
|
@@ -6079,7 +7299,7 @@ var stage_0_default2 = {
|
|
|
6079
7299
|
}
|
|
6080
7300
|
};
|
|
6081
7301
|
|
|
6082
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7302
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/typescript.js
|
|
6083
7303
|
init_cjs_shims();
|
|
6084
7304
|
var typeScriptExtensions2 = [".ts", ".tsx", ".cts", ".mts"];
|
|
6085
7305
|
var allExtensions2 = [
|
|
@@ -6105,7 +7325,7 @@ var typescript_default2 = {
|
|
|
6105
7325
|
}
|
|
6106
7326
|
};
|
|
6107
7327
|
|
|
6108
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7328
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/warnings.js
|
|
6109
7329
|
init_cjs_shims();
|
|
6110
7330
|
var warnings_default2 = {
|
|
6111
7331
|
plugins: ["import-x"],
|
|
@@ -6117,19 +7337,19 @@ var warnings_default2 = {
|
|
|
6117
7337
|
}
|
|
6118
7338
|
};
|
|
6119
7339
|
|
|
6120
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7340
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/meta.js
|
|
6121
7341
|
init_cjs_shims();
|
|
6122
7342
|
|
|
6123
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7343
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/require.js
|
|
6124
7344
|
init_cjs_shims();
|
|
6125
7345
|
var importMetaUrl2 = importMetaUrl2;
|
|
6126
7346
|
var cjsRequire = importMetaUrl2 ? Module.createRequire(importMetaUrl2) : __require;
|
|
6127
7347
|
|
|
6128
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7348
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/meta.js
|
|
6129
7349
|
var { name, version: version2 } = cjsRequire("../package.json");
|
|
6130
7350
|
var meta2 = { name, version: version2 };
|
|
6131
7351
|
|
|
6132
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7352
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/node-resolver.js
|
|
6133
7353
|
init_cjs_shims();
|
|
6134
7354
|
function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".node"], conditionNames = ["import", "require", "default"], mainFields = ["module", "main"], ...restOptions } = {}) {
|
|
6135
7355
|
const resolver = new unrsResolver.ResolverFactory({
|
|
@@ -6157,16 +7377,16 @@ function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".no
|
|
|
6157
7377
|
};
|
|
6158
7378
|
}
|
|
6159
7379
|
|
|
6160
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7380
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/consistent-type-specifier-style.js
|
|
6161
7381
|
init_cjs_shims();
|
|
6162
7382
|
|
|
6163
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7383
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/index.js
|
|
6164
7384
|
init_cjs_shims();
|
|
6165
7385
|
|
|
6166
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7386
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/apply-default.js
|
|
6167
7387
|
init_cjs_shims();
|
|
6168
7388
|
|
|
6169
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7389
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/deep-merge.js
|
|
6170
7390
|
init_cjs_shims();
|
|
6171
7391
|
function isObjectNotArray(obj) {
|
|
6172
7392
|
return typeof obj === "object" && obj != null && !Array.isArray(obj);
|
|
@@ -6190,7 +7410,7 @@ function deepMerge(first = {}, second = {}) {
|
|
|
6190
7410
|
}));
|
|
6191
7411
|
}
|
|
6192
7412
|
|
|
6193
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7413
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/apply-default.js
|
|
6194
7414
|
function applyDefault(defaultOptions, userOptions) {
|
|
6195
7415
|
const options = structuredClone(defaultOptions ?? []);
|
|
6196
7416
|
if (userOptions == null) {
|
|
@@ -6205,19 +7425,19 @@ function applyDefault(defaultOptions, userOptions) {
|
|
|
6205
7425
|
return options;
|
|
6206
7426
|
}
|
|
6207
7427
|
|
|
6208
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7428
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/arraify.js
|
|
6209
7429
|
init_cjs_shims();
|
|
6210
7430
|
var arraify = (value) => value ? Array.isArray(value) ? value : [value] : void 0;
|
|
6211
7431
|
|
|
6212
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7432
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
|
|
6213
7433
|
init_cjs_shims();
|
|
6214
7434
|
|
|
6215
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7435
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/docs-url.js
|
|
6216
7436
|
init_cjs_shims();
|
|
6217
7437
|
var repoUrl = "https://github.com/un-ts/eslint-plugin-import-x";
|
|
6218
7438
|
var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commitish}/docs/rules/${ruleName}.md`;
|
|
6219
7439
|
|
|
6220
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7440
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
|
|
6221
7441
|
function RuleCreator2(urlCreator) {
|
|
6222
7442
|
return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
|
|
6223
7443
|
return createRule_({
|
|
@@ -6244,7 +7464,7 @@ function createRule_({ create, defaultOptions, meta: meta3 }) {
|
|
|
6244
7464
|
}
|
|
6245
7465
|
var createRule2 = RuleCreator2(docsUrl);
|
|
6246
7466
|
|
|
6247
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7467
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
|
|
6248
7468
|
init_cjs_shims();
|
|
6249
7469
|
function declaredScope(context, node2, name3) {
|
|
6250
7470
|
const references = context.sourceCode.getScope(node2).references;
|
|
@@ -6252,10 +7472,10 @@ function declaredScope(context, node2, name3) {
|
|
|
6252
7472
|
return reference?.resolved?.scope.type;
|
|
6253
7473
|
}
|
|
6254
7474
|
|
|
6255
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7475
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/export-map.js
|
|
6256
7476
|
init_cjs_shims();
|
|
6257
7477
|
|
|
6258
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7478
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/get-value.js
|
|
6259
7479
|
init_cjs_shims();
|
|
6260
7480
|
var getValue = (node2) => {
|
|
6261
7481
|
switch (node2.type) {
|
|
@@ -6271,7 +7491,7 @@ var getValue = (node2) => {
|
|
|
6271
7491
|
}
|
|
6272
7492
|
};
|
|
6273
7493
|
|
|
6274
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7494
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/ignore.js
|
|
6275
7495
|
init_cjs_shims();
|
|
6276
7496
|
var log = debug__default.default("eslint-plugin-import-x:utils:ignore");
|
|
6277
7497
|
var cachedSet;
|
|
@@ -6320,7 +7540,7 @@ function hasValidExtension(filepath, context) {
|
|
|
6320
7540
|
return validExtensions(context).has(path16__default.default.extname(filepath));
|
|
6321
7541
|
}
|
|
6322
7542
|
|
|
6323
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7543
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/lazy-value.js
|
|
6324
7544
|
init_cjs_shims();
|
|
6325
7545
|
var lazy = (cb) => {
|
|
6326
7546
|
let isCalled = false;
|
|
@@ -6354,10 +7574,10 @@ function defineLazyProperty(object2, propertyName, valueGetter) {
|
|
|
6354
7574
|
return object2;
|
|
6355
7575
|
}
|
|
6356
7576
|
|
|
6357
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7577
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/parse.js
|
|
6358
7578
|
init_cjs_shims();
|
|
6359
7579
|
|
|
6360
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7580
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/module-require.js
|
|
6361
7581
|
init_cjs_shims();
|
|
6362
7582
|
function createModule(filename) {
|
|
6363
7583
|
const mod = new Module__default.default(filename);
|
|
@@ -6383,7 +7603,7 @@ function moduleRequire(p, sourceFile) {
|
|
|
6383
7603
|
return cjsRequire(p);
|
|
6384
7604
|
}
|
|
6385
7605
|
|
|
6386
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7606
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/parse.js
|
|
6387
7607
|
function withoutProjectParserOptions(opts) {
|
|
6388
7608
|
const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts;
|
|
6389
7609
|
return rest;
|
|
@@ -6477,16 +7697,16 @@ function getParserOrPath(path23, context) {
|
|
|
6477
7697
|
return null;
|
|
6478
7698
|
}
|
|
6479
7699
|
|
|
6480
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7700
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
|
|
6481
7701
|
init_cjs_shims();
|
|
6482
7702
|
|
|
6483
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7703
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
|
|
6484
7704
|
init_cjs_shims();
|
|
6485
7705
|
|
|
6486
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7706
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/package-path.js
|
|
6487
7707
|
init_cjs_shims();
|
|
6488
7708
|
|
|
6489
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7709
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/pkg-up.js
|
|
6490
7710
|
init_cjs_shims();
|
|
6491
7711
|
function findUp(filename, cwd2) {
|
|
6492
7712
|
let dir = path16__default.default.resolve(cwd2 || "");
|
|
@@ -6507,7 +7727,7 @@ function pkgUp(opts) {
|
|
|
6507
7727
|
return findUp("package.json", opts && opts.cwd);
|
|
6508
7728
|
}
|
|
6509
7729
|
|
|
6510
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7730
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/read-pkg-up.js
|
|
6511
7731
|
init_cjs_shims();
|
|
6512
7732
|
function stripBOM(str) {
|
|
6513
7733
|
return str.replace(/^\uFEFF/, "");
|
|
@@ -6527,7 +7747,7 @@ function readPkgUp(opts) {
|
|
|
6527
7747
|
}
|
|
6528
7748
|
}
|
|
6529
7749
|
|
|
6530
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7750
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/package-path.js
|
|
6531
7751
|
function getContextPackagePath(context) {
|
|
6532
7752
|
return getFilePackagePath(context.physicalFilename);
|
|
6533
7753
|
}
|
|
@@ -6542,7 +7762,7 @@ function getFilePackageName(filename) {
|
|
|
6542
7762
|
return null;
|
|
6543
7763
|
}
|
|
6544
7764
|
|
|
6545
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7765
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
|
|
6546
7766
|
function baseModule(name3) {
|
|
6547
7767
|
if (isScoped(name3)) {
|
|
6548
7768
|
const [scope, pkg2] = name3.split("/");
|
|
@@ -6652,17 +7872,17 @@ function importType(name3, context) {
|
|
|
6652
7872
|
return typeTest(name3, context, typeof name3 === "string" ? resolve2(name3, context) : null);
|
|
6653
7873
|
}
|
|
6654
7874
|
|
|
6655
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7875
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
|
|
6656
7876
|
init_cjs_shims();
|
|
6657
7877
|
|
|
6658
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7878
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/pkg-dir.js
|
|
6659
7879
|
init_cjs_shims();
|
|
6660
7880
|
function pkgDir(cwd2) {
|
|
6661
7881
|
const fp = pkgUp({ cwd: cwd2 });
|
|
6662
7882
|
return fp ? path16__default.default.dirname(fp) : null;
|
|
6663
7883
|
}
|
|
6664
7884
|
|
|
6665
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7885
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
|
|
6666
7886
|
function resolveWithLegacyResolver(resolver, config5, modulePath, sourceFile) {
|
|
6667
7887
|
if (resolver.interfaceVersion === 2) {
|
|
6668
7888
|
return resolver.resolve(modulePath, sourceFile, config5);
|
|
@@ -6782,7 +8002,7 @@ function getBaseDir(sourceFile) {
|
|
|
6782
8002
|
return pkgDir(sourceFile) || process.cwd();
|
|
6783
8003
|
}
|
|
6784
8004
|
|
|
6785
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8005
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/module-cache.js
|
|
6786
8006
|
init_cjs_shims();
|
|
6787
8007
|
var log3 = debug__default.default("eslint-plugin-import-x:utils:ModuleCache");
|
|
6788
8008
|
var ModuleCache = class {
|
|
@@ -6819,7 +8039,7 @@ var ModuleCache = class {
|
|
|
6819
8039
|
}
|
|
6820
8040
|
};
|
|
6821
8041
|
|
|
6822
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8042
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
|
|
6823
8043
|
var importMetaUrl3 = importMetaUrl3;
|
|
6824
8044
|
var _filename = importMetaUrl3 ? url$1.fileURLToPath(importMetaUrl3) : __filename;
|
|
6825
8045
|
var _dirname = path16__default.default.dirname(_filename);
|
|
@@ -7031,7 +8251,7 @@ function importXResolverCompat(resolver, resolverOptions = {}) {
|
|
|
7031
8251
|
};
|
|
7032
8252
|
}
|
|
7033
8253
|
|
|
7034
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8254
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/unambiguous.js
|
|
7035
8255
|
init_cjs_shims();
|
|
7036
8256
|
var pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[*={]))|import\(/m;
|
|
7037
8257
|
function isMaybeUnambiguousModule(content) {
|
|
@@ -7042,7 +8262,7 @@ function isUnambiguousModule(ast) {
|
|
|
7042
8262
|
return ast.body && ast.body.some((node2) => unambiguousNodeType.test(node2.type));
|
|
7043
8263
|
}
|
|
7044
8264
|
|
|
7045
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8265
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/visit.js
|
|
7046
8266
|
init_cjs_shims();
|
|
7047
8267
|
function visit(node2, keys, visitorSpec) {
|
|
7048
8268
|
if (!node2 || !keys) {
|
|
@@ -7071,7 +8291,7 @@ function visit(node2, keys, visitorSpec) {
|
|
|
7071
8291
|
}
|
|
7072
8292
|
}
|
|
7073
8293
|
|
|
7074
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8294
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/export-map.js
|
|
7075
8295
|
var log4 = debug__default.default("eslint-plugin-import-x:ExportMap");
|
|
7076
8296
|
var exportCache = /* @__PURE__ */ new Map();
|
|
7077
8297
|
var declTypes = /* @__PURE__ */ new Set([
|
|
@@ -7757,7 +8977,7 @@ function makeContextCacheKey(context) {
|
|
|
7757
8977
|
return hash;
|
|
7758
8978
|
}
|
|
7759
8979
|
|
|
7760
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8980
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/import-declaration.js
|
|
7761
8981
|
init_cjs_shims();
|
|
7762
8982
|
var importDeclaration = (context, node2) => {
|
|
7763
8983
|
if (node2.parent && node2.parent.type === types$1.AST_NODE_TYPES.ImportDeclaration) {
|
|
@@ -7767,7 +8987,7 @@ var importDeclaration = (context, node2) => {
|
|
|
7767
8987
|
return ancestors[ancestors.length - 1];
|
|
7768
8988
|
};
|
|
7769
8989
|
|
|
7770
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8990
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/module-visitor.js
|
|
7771
8991
|
init_cjs_shims();
|
|
7772
8992
|
function moduleVisitor(visitor, options) {
|
|
7773
8993
|
const ignore2 = options?.ignore;
|
|
@@ -7910,7 +9130,7 @@ function makeOptionsSchema(additionalProperties) {
|
|
|
7910
9130
|
}
|
|
7911
9131
|
makeOptionsSchema();
|
|
7912
9132
|
|
|
7913
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9133
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/npm-client.js
|
|
7914
9134
|
init_cjs_shims();
|
|
7915
9135
|
var NPM = "npm";
|
|
7916
9136
|
var NPM_CLIENTS = /* @__PURE__ */ new Set([
|
|
@@ -7931,7 +9151,7 @@ var getNpmClient = () => {
|
|
|
7931
9151
|
};
|
|
7932
9152
|
var getNpmInstallCommand = (packageName) => `${getNpmClient()} ${npmClient === NPM ? "i" : "add"} ${npmClient === "deno" ? `${NPM}:` : ""}${packageName}`;
|
|
7933
9153
|
|
|
7934
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9154
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/parse-path.js
|
|
7935
9155
|
init_cjs_shims();
|
|
7936
9156
|
var parsePath = (path23) => {
|
|
7937
9157
|
const hashIndex = path23.indexOf("#");
|
|
@@ -7945,7 +9165,7 @@ var parsePath = (path23) => {
|
|
|
7945
9165
|
};
|
|
7946
9166
|
var stringifyPath = ({ pathname, query, hash }) => pathname + query + hash;
|
|
7947
9167
|
|
|
7948
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9168
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/source-type.js
|
|
7949
9169
|
init_cjs_shims();
|
|
7950
9170
|
function sourceType(context) {
|
|
7951
9171
|
if ("languageOptions" in context && context.languageOptions) {
|
|
@@ -7961,13 +9181,13 @@ function sourceType(context) {
|
|
|
7961
9181
|
}
|
|
7962
9182
|
}
|
|
7963
9183
|
|
|
7964
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9184
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/static-require.js
|
|
7965
9185
|
init_cjs_shims();
|
|
7966
9186
|
function isStaticRequire(node2) {
|
|
7967
9187
|
return node2 && node2.callee && node2.callee.type === "Identifier" && node2.callee.name === "require" && node2.arguments.length === 1 && node2.arguments[0].type === "Literal" && typeof node2.arguments[0].value === "string";
|
|
7968
9188
|
}
|
|
7969
9189
|
|
|
7970
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9190
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/consistent-type-specifier-style.js
|
|
7971
9191
|
function isComma(token) {
|
|
7972
9192
|
return token.type === "Punctuator" && token.value === ",";
|
|
7973
9193
|
}
|
|
@@ -8133,7 +9353,7 @@ ${newImports}`)
|
|
|
8133
9353
|
}
|
|
8134
9354
|
});
|
|
8135
9355
|
|
|
8136
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9356
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/default.js
|
|
8137
9357
|
init_cjs_shims();
|
|
8138
9358
|
var default_default = createRule2({
|
|
8139
9359
|
name: "default",
|
|
@@ -8178,7 +9398,7 @@ var default_default = createRule2({
|
|
|
8178
9398
|
}
|
|
8179
9399
|
});
|
|
8180
9400
|
|
|
8181
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9401
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/dynamic-import-chunkname.js
|
|
8182
9402
|
init_cjs_shims();
|
|
8183
9403
|
var dynamic_import_chunkname_default = createRule2({
|
|
8184
9404
|
name: "dynamic-import-chunkname",
|
|
@@ -8349,7 +9569,7 @@ var dynamic_import_chunkname_default = createRule2({
|
|
|
8349
9569
|
}
|
|
8350
9570
|
});
|
|
8351
9571
|
|
|
8352
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9572
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/export.js
|
|
8353
9573
|
init_cjs_shims();
|
|
8354
9574
|
var rootProgram = "root";
|
|
8355
9575
|
var tsTypePrefix = "type:";
|
|
@@ -8502,7 +9722,7 @@ var export_default = createRule2({
|
|
|
8502
9722
|
}
|
|
8503
9723
|
});
|
|
8504
9724
|
|
|
8505
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9725
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/exports-last.js
|
|
8506
9726
|
init_cjs_shims();
|
|
8507
9727
|
var findLastIndex = (array2, predicate) => {
|
|
8508
9728
|
let i = array2.length - 1;
|
|
@@ -8550,7 +9770,7 @@ var exports_last_default = createRule2({
|
|
|
8550
9770
|
}
|
|
8551
9771
|
});
|
|
8552
9772
|
|
|
8553
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9773
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
|
|
8554
9774
|
init_cjs_shims();
|
|
8555
9775
|
|
|
8556
9776
|
// ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
|
|
@@ -10152,7 +11372,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
10152
11372
|
minimatch.escape = escape;
|
|
10153
11373
|
minimatch.unescape = unescape;
|
|
10154
11374
|
|
|
10155
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11375
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
|
|
10156
11376
|
var modifierValues = ["always", "ignorePackages", "never"];
|
|
10157
11377
|
var modifierSchema = {
|
|
10158
11378
|
type: "string",
|
|
@@ -10434,7 +11654,7 @@ var extensions_default = createRule2({
|
|
|
10434
11654
|
}
|
|
10435
11655
|
});
|
|
10436
11656
|
|
|
10437
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11657
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/first.js
|
|
10438
11658
|
init_cjs_shims();
|
|
10439
11659
|
function getImportValue(node2) {
|
|
10440
11660
|
return node2.type === "ImportDeclaration" ? node2.source.value : "moduleReference" in node2 && "expression" in node2.moduleReference && "value" in node2.moduleReference.expression && node2.moduleReference.expression.value;
|
|
@@ -10569,7 +11789,7 @@ ${nodeSourceCode}`;
|
|
|
10569
11789
|
}
|
|
10570
11790
|
});
|
|
10571
11791
|
|
|
10572
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11792
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/group-exports.js
|
|
10573
11793
|
init_cjs_shims();
|
|
10574
11794
|
function accessorChain(node2) {
|
|
10575
11795
|
const chain = [];
|
|
@@ -10684,7 +11904,7 @@ var group_exports_default = createRule2({
|
|
|
10684
11904
|
}
|
|
10685
11905
|
});
|
|
10686
11906
|
|
|
10687
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11907
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/imports-first.js
|
|
10688
11908
|
init_cjs_shims();
|
|
10689
11909
|
var imports_first_default = createRule2({
|
|
10690
11910
|
...first_default,
|
|
@@ -10709,7 +11929,7 @@ var imports_first_default = createRule2({
|
|
|
10709
11929
|
}
|
|
10710
11930
|
});
|
|
10711
11931
|
|
|
10712
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11932
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/max-dependencies.js
|
|
10713
11933
|
init_cjs_shims();
|
|
10714
11934
|
var max_dependencies_default = createRule2({
|
|
10715
11935
|
name: "max-dependencies",
|
|
@@ -10762,7 +11982,7 @@ var max_dependencies_default = createRule2({
|
|
|
10762
11982
|
}
|
|
10763
11983
|
});
|
|
10764
11984
|
|
|
10765
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11985
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/named.js
|
|
10766
11986
|
init_cjs_shims();
|
|
10767
11987
|
var named_default = createRule2({
|
|
10768
11988
|
name: "named",
|
|
@@ -10888,7 +12108,7 @@ var named_default = createRule2({
|
|
|
10888
12108
|
}
|
|
10889
12109
|
});
|
|
10890
12110
|
|
|
10891
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12111
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/namespace.js
|
|
10892
12112
|
init_cjs_shims();
|
|
10893
12113
|
function processBodyStatement(context, namespaces, declaration) {
|
|
10894
12114
|
if (declaration.type !== "ImportDeclaration") {
|
|
@@ -11116,7 +12336,7 @@ var namespace_default = createRule2({
|
|
|
11116
12336
|
}
|
|
11117
12337
|
});
|
|
11118
12338
|
|
|
11119
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12339
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/newline-after-import.js
|
|
11120
12340
|
init_cjs_shims();
|
|
11121
12341
|
var log5 = debug__default.default("eslint-plugin-import-x:rules:newline-after-import");
|
|
11122
12342
|
function containsNodeOrEqual(outerNode, innerNode) {
|
|
@@ -11318,7 +12538,7 @@ var newline_after_import_default = createRule2({
|
|
|
11318
12538
|
}
|
|
11319
12539
|
});
|
|
11320
12540
|
|
|
11321
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12541
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-absolute-path.js
|
|
11322
12542
|
init_cjs_shims();
|
|
11323
12543
|
var no_absolute_path_default = createRule2({
|
|
11324
12544
|
name: "no-absolute-path",
|
|
@@ -11356,7 +12576,7 @@ var no_absolute_path_default = createRule2({
|
|
|
11356
12576
|
}
|
|
11357
12577
|
});
|
|
11358
12578
|
|
|
11359
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12579
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-amd.js
|
|
11360
12580
|
init_cjs_shims();
|
|
11361
12581
|
var no_amd_default = createRule2({
|
|
11362
12582
|
name: "no-amd",
|
|
@@ -11403,7 +12623,7 @@ var no_amd_default = createRule2({
|
|
|
11403
12623
|
}
|
|
11404
12624
|
});
|
|
11405
12625
|
|
|
11406
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12626
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-anonymous-default-export.js
|
|
11407
12627
|
init_cjs_shims();
|
|
11408
12628
|
var { hasOwnProperty } = Object.prototype;
|
|
11409
12629
|
var hasOwn = (object2, key) => hasOwnProperty.call(object2, key);
|
|
@@ -11537,7 +12757,7 @@ var no_anonymous_default_export_default = createRule2({
|
|
|
11537
12757
|
}
|
|
11538
12758
|
});
|
|
11539
12759
|
|
|
11540
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12760
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-commonjs.js
|
|
11541
12761
|
init_cjs_shims();
|
|
11542
12762
|
function normalizeLegacyOptions(options) {
|
|
11543
12763
|
if (options.includes("allow-primitive-modules")) {
|
|
@@ -11660,7 +12880,7 @@ var no_commonjs_default = createRule2({
|
|
|
11660
12880
|
}
|
|
11661
12881
|
});
|
|
11662
12882
|
|
|
11663
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12883
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-cycle.js
|
|
11664
12884
|
init_cjs_shims();
|
|
11665
12885
|
var traversed = /* @__PURE__ */ new Set();
|
|
11666
12886
|
var no_cycle_default = createRule2({
|
|
@@ -11789,7 +13009,7 @@ function routeString(route) {
|
|
|
11789
13009
|
return route.map((s) => `${s.value}:${s.loc.start.line}`).join("=>");
|
|
11790
13010
|
}
|
|
11791
13011
|
|
|
11792
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13012
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-default-export.js
|
|
11793
13013
|
init_cjs_shims();
|
|
11794
13014
|
var no_default_export_default = createRule2({
|
|
11795
13015
|
name: "no-default-export",
|
|
@@ -11845,7 +13065,7 @@ var no_default_export_default = createRule2({
|
|
|
11845
13065
|
}
|
|
11846
13066
|
});
|
|
11847
13067
|
|
|
11848
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13068
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-deprecated.js
|
|
11849
13069
|
init_cjs_shims();
|
|
11850
13070
|
function message(deprecation) {
|
|
11851
13071
|
if (deprecation.description) {
|
|
@@ -12003,7 +13223,7 @@ var no_deprecated_default = createRule2({
|
|
|
12003
13223
|
}
|
|
12004
13224
|
});
|
|
12005
13225
|
|
|
12006
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13226
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-duplicates.js
|
|
12007
13227
|
init_cjs_shims();
|
|
12008
13228
|
var isTypeScriptVersionSupportPreferInline = lazy(() => {
|
|
12009
13229
|
let typescriptPkg;
|
|
@@ -12276,7 +13496,7 @@ var no_duplicates_default = createRule2({
|
|
|
12276
13496
|
}
|
|
12277
13497
|
});
|
|
12278
13498
|
|
|
12279
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13499
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-dynamic-require.js
|
|
12280
13500
|
init_cjs_shims();
|
|
12281
13501
|
function isRequire(node2) {
|
|
12282
13502
|
return node2.callee?.type === "Identifier" && node2.callee.name === "require" && node2.arguments.length > 0;
|
|
@@ -12345,7 +13565,7 @@ var no_dynamic_require_default = createRule2({
|
|
|
12345
13565
|
}
|
|
12346
13566
|
});
|
|
12347
13567
|
|
|
12348
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13568
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-empty-named-blocks.js
|
|
12349
13569
|
init_cjs_shims();
|
|
12350
13570
|
function getEmptyBlockRange(tokens, index) {
|
|
12351
13571
|
const token = tokens[index];
|
|
@@ -12443,7 +13663,7 @@ var no_empty_named_blocks_default = createRule2({
|
|
|
12443
13663
|
}
|
|
12444
13664
|
});
|
|
12445
13665
|
|
|
12446
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13666
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-extraneous-dependencies.js
|
|
12447
13667
|
init_cjs_shims();
|
|
12448
13668
|
var depFieldCache = /* @__PURE__ */ new Map();
|
|
12449
13669
|
var minimatch2 = minimatch;
|
|
@@ -12689,7 +13909,7 @@ var no_extraneous_dependencies_default = createRule2({
|
|
|
12689
13909
|
}
|
|
12690
13910
|
});
|
|
12691
13911
|
|
|
12692
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13912
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-import-module-exports.js
|
|
12693
13913
|
init_cjs_shims();
|
|
12694
13914
|
function getEntryPoint(context) {
|
|
12695
13915
|
const pkgPath = pkgUp({
|
|
@@ -12771,7 +13991,7 @@ var no_import_module_exports_default = createRule2({
|
|
|
12771
13991
|
}
|
|
12772
13992
|
});
|
|
12773
13993
|
|
|
12774
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13994
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-internal-modules.js
|
|
12775
13995
|
init_cjs_shims();
|
|
12776
13996
|
function normalizeSep(somePath) {
|
|
12777
13997
|
return somePath.split("\\").join("/");
|
|
@@ -12888,7 +14108,7 @@ var no_internal_modules_default = createRule2({
|
|
|
12888
14108
|
}
|
|
12889
14109
|
});
|
|
12890
14110
|
|
|
12891
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14111
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-mutable-exports.js
|
|
12892
14112
|
init_cjs_shims();
|
|
12893
14113
|
var no_mutable_exports_default = createRule2({
|
|
12894
14114
|
name: "no-mutable-exports",
|
|
@@ -12948,7 +14168,7 @@ var no_mutable_exports_default = createRule2({
|
|
|
12948
14168
|
}
|
|
12949
14169
|
});
|
|
12950
14170
|
|
|
12951
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14171
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default-member.js
|
|
12952
14172
|
init_cjs_shims();
|
|
12953
14173
|
var no_named_as_default_member_default = createRule2({
|
|
12954
14174
|
name: "no-named-as-default-member",
|
|
@@ -13035,7 +14255,7 @@ var no_named_as_default_member_default = createRule2({
|
|
|
13035
14255
|
}
|
|
13036
14256
|
});
|
|
13037
14257
|
|
|
13038
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14258
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default.js
|
|
13039
14259
|
init_cjs_shims();
|
|
13040
14260
|
var no_named_as_default_default = createRule2({
|
|
13041
14261
|
name: "no-named-as-default",
|
|
@@ -13091,7 +14311,7 @@ var no_named_as_default_default = createRule2({
|
|
|
13091
14311
|
}
|
|
13092
14312
|
});
|
|
13093
14313
|
|
|
13094
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14314
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-named-default.js
|
|
13095
14315
|
init_cjs_shims();
|
|
13096
14316
|
var no_named_default_default = createRule2({
|
|
13097
14317
|
name: "no-named-default",
|
|
@@ -13129,7 +14349,7 @@ var no_named_default_default = createRule2({
|
|
|
13129
14349
|
}
|
|
13130
14350
|
});
|
|
13131
14351
|
|
|
13132
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14352
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-named-export.js
|
|
13133
14353
|
init_cjs_shims();
|
|
13134
14354
|
var no_named_export_default = createRule2({
|
|
13135
14355
|
name: "no-named-export",
|
|
@@ -13166,7 +14386,7 @@ var no_named_export_default = createRule2({
|
|
|
13166
14386
|
}
|
|
13167
14387
|
});
|
|
13168
14388
|
|
|
13169
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14389
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-namespace.js
|
|
13170
14390
|
init_cjs_shims();
|
|
13171
14391
|
var no_namespace_default = createRule2({
|
|
13172
14392
|
name: "no-namespace",
|
|
@@ -13289,7 +14509,7 @@ function generateLocalNames(names, nameConflicts, namespaceName) {
|
|
|
13289
14509
|
return localNames;
|
|
13290
14510
|
}
|
|
13291
14511
|
|
|
13292
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14512
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-nodejs-modules.js
|
|
13293
14513
|
init_cjs_shims();
|
|
13294
14514
|
var no_nodejs_modules_default = createRule2({
|
|
13295
14515
|
name: "no-nodejs-modules",
|
|
@@ -13337,7 +14557,7 @@ var no_nodejs_modules_default = createRule2({
|
|
|
13337
14557
|
}
|
|
13338
14558
|
});
|
|
13339
14559
|
|
|
13340
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14560
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-relative-packages.js
|
|
13341
14561
|
init_cjs_shims();
|
|
13342
14562
|
function toPosixPath(filePath) {
|
|
13343
14563
|
return filePath.replaceAll("\\", "/");
|
|
@@ -13397,7 +14617,7 @@ var no_relative_packages_default = createRule2({
|
|
|
13397
14617
|
}
|
|
13398
14618
|
});
|
|
13399
14619
|
|
|
13400
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14620
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-relative-parent-imports.js
|
|
13401
14621
|
init_cjs_shims();
|
|
13402
14622
|
var no_relative_parent_imports_default = createRule2({
|
|
13403
14623
|
name: "no-relative-parent-imports",
|
|
@@ -13442,7 +14662,7 @@ var no_relative_parent_imports_default = createRule2({
|
|
|
13442
14662
|
}
|
|
13443
14663
|
});
|
|
13444
14664
|
|
|
13445
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14665
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-rename-default.js
|
|
13446
14666
|
init_cjs_shims();
|
|
13447
14667
|
var no_rename_default_default = createRule2({
|
|
13448
14668
|
name: "no-rename-default",
|
|
@@ -13682,7 +14902,7 @@ function getDefaultExportNode(exportMap) {
|
|
|
13682
14902
|
}
|
|
13683
14903
|
}
|
|
13684
14904
|
|
|
13685
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14905
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-restricted-paths.js
|
|
13686
14906
|
init_cjs_shims();
|
|
13687
14907
|
var containsPath = (filepath, target) => {
|
|
13688
14908
|
const relative3 = path16__default.default.relative(target, filepath);
|
|
@@ -13883,7 +15103,7 @@ var no_restricted_paths_default = createRule2({
|
|
|
13883
15103
|
}
|
|
13884
15104
|
});
|
|
13885
15105
|
|
|
13886
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15106
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-self-import.js
|
|
13887
15107
|
init_cjs_shims();
|
|
13888
15108
|
function isImportingSelf(context, node2, requireName) {
|
|
13889
15109
|
const filename = context.physicalFilename;
|
|
@@ -13916,7 +15136,7 @@ var no_self_import_default = createRule2({
|
|
|
13916
15136
|
}
|
|
13917
15137
|
});
|
|
13918
15138
|
|
|
13919
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15139
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-unassigned-import.js
|
|
13920
15140
|
init_cjs_shims();
|
|
13921
15141
|
function testIsAllow(globs, context, source) {
|
|
13922
15142
|
if (!Array.isArray(globs)) {
|
|
@@ -13986,7 +15206,7 @@ var no_unassigned_import_default = createRule2({
|
|
|
13986
15206
|
}
|
|
13987
15207
|
});
|
|
13988
15208
|
|
|
13989
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15209
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-unresolved.js
|
|
13990
15210
|
init_cjs_shims();
|
|
13991
15211
|
var no_unresolved_default = createRule2({
|
|
13992
15212
|
name: "no-unresolved",
|
|
@@ -14041,7 +15261,7 @@ var no_unresolved_default = createRule2({
|
|
|
14041
15261
|
}
|
|
14042
15262
|
});
|
|
14043
15263
|
|
|
14044
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15264
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-unused-modules.js
|
|
14045
15265
|
init_cjs_shims();
|
|
14046
15266
|
function isESLint9UnsupportedApi(input) {
|
|
14047
15267
|
return typeof input === "object" && input !== null && "shouldUseFlatConfig" in input && "FileEnumerator" in eslintUnsupportedApi__default.default;
|
|
@@ -14777,7 +15997,7 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
|
|
|
14777
15997
|
}
|
|
14778
15998
|
});
|
|
14779
15999
|
|
|
14780
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16000
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-useless-path-segments.js
|
|
14781
16001
|
init_cjs_shims();
|
|
14782
16002
|
function toRelativePath(relativePath) {
|
|
14783
16003
|
const stripped = relativePath.replaceAll(/\/$/g, "");
|
|
@@ -14874,7 +16094,7 @@ var no_useless_path_segments_default = createRule2({
|
|
|
14874
16094
|
}
|
|
14875
16095
|
});
|
|
14876
16096
|
|
|
14877
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16097
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/no-webpack-loader-syntax.js
|
|
14878
16098
|
init_cjs_shims();
|
|
14879
16099
|
var no_webpack_loader_syntax_default = createRule2({
|
|
14880
16100
|
name: "no-webpack-loader-syntax",
|
|
@@ -14905,7 +16125,7 @@ var no_webpack_loader_syntax_default = createRule2({
|
|
|
14905
16125
|
}
|
|
14906
16126
|
});
|
|
14907
16127
|
|
|
14908
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16128
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/order.js
|
|
14909
16129
|
init_cjs_shims();
|
|
14910
16130
|
var log6 = debug__default.default("eslint-plugin-import-x:rules:order");
|
|
14911
16131
|
var groupBy = (array2, grouper) => array2.reduce((acc, curr, index) => {
|
|
@@ -15950,7 +17170,7 @@ var order_default = createRule2({
|
|
|
15950
17170
|
}
|
|
15951
17171
|
});
|
|
15952
17172
|
|
|
15953
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
17173
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/prefer-default-export.js
|
|
15954
17174
|
init_cjs_shims();
|
|
15955
17175
|
var prefer_default_export_default = createRule2({
|
|
15956
17176
|
name: "prefer-default-export",
|
|
@@ -16056,7 +17276,7 @@ var prefer_default_export_default = createRule2({
|
|
|
16056
17276
|
}
|
|
16057
17277
|
});
|
|
16058
17278
|
|
|
16059
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
17279
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/prefer-namespace-import.js
|
|
16060
17280
|
init_cjs_shims();
|
|
16061
17281
|
var prefer_namespace_import_default = createRule2({
|
|
16062
17282
|
name: "prefer-namespace-import",
|
|
@@ -16138,7 +17358,7 @@ function toRegExp(string3) {
|
|
|
16138
17358
|
return { test: (s) => s === string3 };
|
|
16139
17359
|
}
|
|
16140
17360
|
|
|
16141
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
17361
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/unambiguous.js
|
|
16142
17362
|
init_cjs_shims();
|
|
16143
17363
|
var unambiguous_default = createRule2({
|
|
16144
17364
|
name: "unambiguous",
|
|
@@ -16171,7 +17391,7 @@ var unambiguous_default = createRule2({
|
|
|
16171
17391
|
}
|
|
16172
17392
|
});
|
|
16173
17393
|
|
|
16174
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
17394
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/index.js
|
|
16175
17395
|
var rules2 = {
|
|
16176
17396
|
"no-unresolved": no_unresolved_default,
|
|
16177
17397
|
named: named_default,
|
|
@@ -17776,7 +18996,7 @@ init_cjs_shims();
|
|
|
17776
18996
|
// ../eslint-plugin-pnpm/src/plugin.ts
|
|
17777
18997
|
init_cjs_shims();
|
|
17778
18998
|
|
|
17779
|
-
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=
|
|
18999
|
+
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_f3795df961f0ced0a2358dd7bcde797b/node_modules/eslint-plugin-pnpm/dist/index.mjs
|
|
17780
19000
|
init_cjs_shims();
|
|
17781
19001
|
var name2 = "eslint-plugin-pnpm";
|
|
17782
19002
|
var version3 = "0.3.0";
|
|
@@ -18859,19 +20079,15 @@ async function react(options = {}) {
|
|
|
18859
20079
|
|
|
18860
20080
|
// src/configs/react-native.ts
|
|
18861
20081
|
init_cjs_shims();
|
|
20082
|
+
var import_eslint_plugin_react_native = __toESM(require_eslint_plugin_react_native());
|
|
18862
20083
|
async function reactNative(options = {}) {
|
|
18863
20084
|
const { overrides = {} } = options;
|
|
18864
|
-
await ensurePackages(["eslint-plugin-react-native"]);
|
|
18865
|
-
const reactNative2 = await interopDefault(
|
|
18866
|
-
// eslint-disable-next-line @nx/enforce-module-boundaries
|
|
18867
|
-
import('eslint-plugin-react-native')
|
|
18868
|
-
);
|
|
18869
20085
|
return [
|
|
18870
20086
|
{
|
|
18871
20087
|
name: "storm/react-native/rules",
|
|
18872
|
-
plugins: { "react-native":
|
|
20088
|
+
plugins: { "react-native": import_eslint_plugin_react_native.default },
|
|
18873
20089
|
rules: {
|
|
18874
|
-
...
|
|
20090
|
+
...import_eslint_plugin_react_native.default.configs.all.rules,
|
|
18875
20091
|
...overrides
|
|
18876
20092
|
}
|
|
18877
20093
|
}
|
|
@@ -19217,10 +20433,10 @@ async function storybook(options = {}) {
|
|
|
19217
20433
|
|
|
19218
20434
|
// src/configs/test.ts
|
|
19219
20435
|
init_cjs_shims();
|
|
19220
|
-
var
|
|
20436
|
+
var plugin6;
|
|
19221
20437
|
async function test(options = {}) {
|
|
19222
20438
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
19223
|
-
|
|
20439
|
+
plugin6 = plugin6 || {
|
|
19224
20440
|
...default4__default.default,
|
|
19225
20441
|
rules: {
|
|
19226
20442
|
...default4__default.default.rules,
|
|
@@ -19232,7 +20448,7 @@ async function test(options = {}) {
|
|
|
19232
20448
|
{
|
|
19233
20449
|
name: "storm/test/setup",
|
|
19234
20450
|
plugins: {
|
|
19235
|
-
test:
|
|
20451
|
+
test: plugin6
|
|
19236
20452
|
}
|
|
19237
20453
|
},
|
|
19238
20454
|
{
|