@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.js
CHANGED
|
@@ -3,6 +3,8 @@ import { getTsConfigPath } from './chunk-STWB44U5.js';
|
|
|
3
3
|
import { findWorkspaceRoot } from './chunk-2U26IRBT.js';
|
|
4
4
|
import { joinPaths } from './chunk-I72VXUA2.js';
|
|
5
5
|
import { __commonJS, init_esm_shims, __toESM, __require, __filename as __filename$1 } from './chunk-HUL5SEAB.js';
|
|
6
|
+
import * as __import_util from 'util';
|
|
7
|
+
import * as __import_eslintPluginReactNativeGlobals from 'eslint-plugin-react-native-globals';
|
|
6
8
|
import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
|
|
7
9
|
import * as __import_path from 'path';
|
|
8
10
|
import * as __import_fs from 'fs';
|
|
@@ -56,6 +58,1234 @@ import { globSync } from 'tinyglobby';
|
|
|
56
58
|
import config4 from 'eslint-plugin-prettier/recommended';
|
|
57
59
|
import { configs as configs$1 } from 'eslint-plugin-regexp';
|
|
58
60
|
|
|
61
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/util/Components.js
|
|
62
|
+
var require_Components = __commonJS({
|
|
63
|
+
"../../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) {
|
|
64
|
+
init_esm_shims();
|
|
65
|
+
function Components() {
|
|
66
|
+
this.list = {};
|
|
67
|
+
this.getId = function(node2) {
|
|
68
|
+
return node2 && node2.range.join(":");
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
Components.prototype.add = function(node2, confidence) {
|
|
72
|
+
const id = this.getId(node2);
|
|
73
|
+
if (this.list[id]) {
|
|
74
|
+
if (confidence === 0 || this.list[id].confidence === 0) {
|
|
75
|
+
this.list[id].confidence = 0;
|
|
76
|
+
} else {
|
|
77
|
+
this.list[id].confidence = Math.max(this.list[id].confidence, confidence);
|
|
78
|
+
}
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
this.list[id] = {
|
|
82
|
+
node: node2,
|
|
83
|
+
confidence
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
Components.prototype.get = function(node2) {
|
|
87
|
+
const id = this.getId(node2);
|
|
88
|
+
return this.list[id];
|
|
89
|
+
};
|
|
90
|
+
Components.prototype.set = function(node2, props) {
|
|
91
|
+
let currentNode = node2;
|
|
92
|
+
while (currentNode && !this.list[this.getId(currentNode)]) {
|
|
93
|
+
currentNode = node2.parent;
|
|
94
|
+
}
|
|
95
|
+
if (!currentNode) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const id = this.getId(currentNode);
|
|
99
|
+
this.list[id] = { ...this.list[id], ...props };
|
|
100
|
+
};
|
|
101
|
+
Components.prototype.all = function() {
|
|
102
|
+
const list = {};
|
|
103
|
+
Object.keys(this.list).forEach((i) => {
|
|
104
|
+
if ({}.hasOwnProperty.call(this.list, i) && this.list[i].confidence >= 2) {
|
|
105
|
+
list[i] = this.list[i];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return list;
|
|
109
|
+
};
|
|
110
|
+
Components.prototype.length = function() {
|
|
111
|
+
let length = 0;
|
|
112
|
+
Object.keys(this.list).forEach((i) => {
|
|
113
|
+
if ({}.hasOwnProperty.call(this.list, i) && this.list[i].confidence >= 2) {
|
|
114
|
+
length += 1;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return length;
|
|
118
|
+
};
|
|
119
|
+
function componentRule(rule, context, _node) {
|
|
120
|
+
const sourceCode = context.sourceCode ?? context.getSourceCode();
|
|
121
|
+
const components = new Components();
|
|
122
|
+
const utils = {
|
|
123
|
+
/**
|
|
124
|
+
* Check if the node is a React ES5 component
|
|
125
|
+
*
|
|
126
|
+
* @param {ASTNode} node The AST node being checked.
|
|
127
|
+
* @returns {Boolean} True if the node is a React ES5 component, false if not
|
|
128
|
+
*/
|
|
129
|
+
isES5Component: function(node2) {
|
|
130
|
+
if (!node2.parent) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
return /^(React\.)?createClass$/.test(sourceCode.getText(node2.parent.callee));
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
* Check if the node is a React ES6 component
|
|
137
|
+
*
|
|
138
|
+
* @param {ASTNode} node The AST node being checked.
|
|
139
|
+
* @returns {Boolean} True if the node is a React ES6 component, false if not
|
|
140
|
+
*/
|
|
141
|
+
isES6Component: function(node2) {
|
|
142
|
+
if (!node2.superClass) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
return /^(React\.)?(Pure)?Component$/.test(sourceCode.getText(node2.superClass));
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* Check if the node is returning JSX
|
|
149
|
+
*
|
|
150
|
+
* @param {ASTNode} node The AST node being checked (must be a ReturnStatement).
|
|
151
|
+
* @returns {Boolean} True if the node is returning JSX, false if not
|
|
152
|
+
*/
|
|
153
|
+
isReturningJSX: function(node2) {
|
|
154
|
+
let property;
|
|
155
|
+
switch (node2.type) {
|
|
156
|
+
case "ReturnStatement":
|
|
157
|
+
property = "argument";
|
|
158
|
+
break;
|
|
159
|
+
case "ArrowFunctionExpression":
|
|
160
|
+
property = "body";
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
const returnsJSX = node2[property] && (node2[property].type === "JSXElement" || node2[property].type === "JSXFragment");
|
|
166
|
+
const returnsReactCreateElement = node2[property] && node2[property].callee && node2[property].callee.property && node2[property].callee.property.name === "createElement";
|
|
167
|
+
return Boolean(returnsJSX || returnsReactCreateElement);
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
* Get the parent component node from the current scope
|
|
171
|
+
*
|
|
172
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
173
|
+
*/
|
|
174
|
+
getParentComponent: function(_n) {
|
|
175
|
+
return utils.getParentES6Component(_n) || utils.getParentES5Component(_n) || utils.getParentStatelessComponent(_n);
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
* Get the parent ES5 component node from the current scope
|
|
179
|
+
*
|
|
180
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
181
|
+
*/
|
|
182
|
+
getParentES5Component: function(_n) {
|
|
183
|
+
let scope = (context.sourceCode || context).getScope(_n);
|
|
184
|
+
while (scope) {
|
|
185
|
+
const node2 = scope.block && scope.block.parent && scope.block.parent.parent;
|
|
186
|
+
if (node2 && utils.isES5Component(node2)) {
|
|
187
|
+
return node2;
|
|
188
|
+
}
|
|
189
|
+
scope = scope.upper;
|
|
190
|
+
}
|
|
191
|
+
return null;
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Get the parent ES6 component node from the current scope
|
|
195
|
+
*
|
|
196
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
197
|
+
*/
|
|
198
|
+
getParentES6Component: function(_n) {
|
|
199
|
+
let scope = (context.sourceCode || context).getScope(_n);
|
|
200
|
+
while (scope && scope.type !== "class") {
|
|
201
|
+
scope = scope.upper;
|
|
202
|
+
}
|
|
203
|
+
const node2 = scope && scope.block;
|
|
204
|
+
if (!node2 || !utils.isES6Component(node2)) {
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
return node2;
|
|
208
|
+
},
|
|
209
|
+
/**
|
|
210
|
+
* Get the parent stateless component node from the current scope
|
|
211
|
+
*
|
|
212
|
+
* @returns {ASTNode} component node, null if we are not in a component
|
|
213
|
+
*/
|
|
214
|
+
getParentStatelessComponent: function(_n) {
|
|
215
|
+
let scope = (context.sourceCode || context).getScope(_n);
|
|
216
|
+
while (scope) {
|
|
217
|
+
const node2 = scope.block;
|
|
218
|
+
const isFunction = /Function/.test(node2.type);
|
|
219
|
+
const isNotMethod = !node2.parent || node2.parent.type !== "MethodDefinition";
|
|
220
|
+
const isNotArgument = !node2.parent || node2.parent.type !== "CallExpression";
|
|
221
|
+
if (isFunction && isNotMethod && isNotArgument) {
|
|
222
|
+
return node2;
|
|
223
|
+
}
|
|
224
|
+
scope = scope.upper;
|
|
225
|
+
}
|
|
226
|
+
return null;
|
|
227
|
+
},
|
|
228
|
+
/**
|
|
229
|
+
* Get the related component from a node
|
|
230
|
+
*
|
|
231
|
+
* @param {ASTNode} node The AST node being checked (must be a MemberExpression).
|
|
232
|
+
* @returns {ASTNode} component node, null if we cannot find the component
|
|
233
|
+
*/
|
|
234
|
+
getRelatedComponent: function(node2) {
|
|
235
|
+
let currentNode = node2;
|
|
236
|
+
let i;
|
|
237
|
+
let j;
|
|
238
|
+
let k;
|
|
239
|
+
let l;
|
|
240
|
+
const componentPath = [];
|
|
241
|
+
while (currentNode) {
|
|
242
|
+
if (currentNode.property && currentNode.property.type === "Identifier") {
|
|
243
|
+
componentPath.push(currentNode.property.name);
|
|
244
|
+
}
|
|
245
|
+
if (currentNode.object && currentNode.object.type === "Identifier") {
|
|
246
|
+
componentPath.push(currentNode.object.name);
|
|
247
|
+
}
|
|
248
|
+
currentNode = currentNode.object;
|
|
249
|
+
}
|
|
250
|
+
componentPath.reverse();
|
|
251
|
+
const variableName = componentPath.shift();
|
|
252
|
+
if (!variableName) {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
let variableInScope;
|
|
256
|
+
const { variables } = (context.sourceCode || context).getScope(_node);
|
|
257
|
+
for (i = 0, j = variables.length; i < j; i++) {
|
|
258
|
+
if (variables[i].name === variableName) {
|
|
259
|
+
variableInScope = variables[i];
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (!variableInScope) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
let defInScope;
|
|
267
|
+
const { defs: defs2 } = variableInScope;
|
|
268
|
+
for (i = 0, j = defs2.length; i < j; i++) {
|
|
269
|
+
if (defs2[i].type === "ClassName" || defs2[i].type === "FunctionName" || defs2[i].type === "Variable") {
|
|
270
|
+
defInScope = defs2[i];
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
if (!defInScope) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
currentNode = defInScope.node.init || defInScope.node;
|
|
278
|
+
for (i = 0, j = componentPath.length; i < j; i++) {
|
|
279
|
+
if (!currentNode.properties) {
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
for (k = 0, l = currentNode.properties.length; k < l; k++) {
|
|
283
|
+
if (currentNode.properties[k].key.name === componentPath[i]) {
|
|
284
|
+
currentNode = currentNode.properties[k];
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (!currentNode) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
currentNode = currentNode.value;
|
|
292
|
+
}
|
|
293
|
+
return components.get(currentNode);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
const detectionInstructions = {
|
|
297
|
+
ClassDeclaration: function(node2) {
|
|
298
|
+
if (!utils.isES6Component(node2)) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
components.add(node2, 2);
|
|
302
|
+
},
|
|
303
|
+
ClassProperty: function(_n) {
|
|
304
|
+
const node2 = utils.getParentComponent(_n);
|
|
305
|
+
if (!node2) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
components.add(node2, 2);
|
|
309
|
+
},
|
|
310
|
+
ObjectExpression: function(node2) {
|
|
311
|
+
if (!utils.isES5Component(node2)) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
components.add(node2, 2);
|
|
315
|
+
},
|
|
316
|
+
FunctionExpression: function(_n) {
|
|
317
|
+
const node2 = utils.getParentComponent(_n);
|
|
318
|
+
if (!node2) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
components.add(node2, 1);
|
|
322
|
+
},
|
|
323
|
+
FunctionDeclaration: function(_n) {
|
|
324
|
+
const node2 = utils.getParentComponent(_n);
|
|
325
|
+
if (!node2) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
components.add(node2, 1);
|
|
329
|
+
},
|
|
330
|
+
ArrowFunctionExpression: function(_n) {
|
|
331
|
+
const node2 = utils.getParentComponent(_n);
|
|
332
|
+
if (!node2) {
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
if (node2.expression && utils.isReturningJSX(node2)) {
|
|
336
|
+
components.add(node2, 2);
|
|
337
|
+
} else {
|
|
338
|
+
components.add(node2, 1);
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
ThisExpression: function(_n) {
|
|
342
|
+
const node2 = utils.getParentComponent(_n);
|
|
343
|
+
if (!node2 || !/Function/.test(node2.type)) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
components.add(node2, 0);
|
|
347
|
+
},
|
|
348
|
+
ReturnStatement: function(node2) {
|
|
349
|
+
if (!utils.isReturningJSX(node2)) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
const parentNode = utils.getParentComponent(node2);
|
|
353
|
+
if (!parentNode) {
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
components.add(parentNode, 2);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
const ruleInstructions = rule(context, components, utils);
|
|
360
|
+
const updatedRuleInstructions = { ...ruleInstructions };
|
|
361
|
+
Object.keys(detectionInstructions).forEach((instruction) => {
|
|
362
|
+
updatedRuleInstructions[instruction] = (node2) => {
|
|
363
|
+
detectionInstructions[instruction](node2);
|
|
364
|
+
return ruleInstructions[instruction] ? ruleInstructions[instruction](node2) : void 0;
|
|
365
|
+
};
|
|
366
|
+
});
|
|
367
|
+
return updatedRuleInstructions;
|
|
368
|
+
}
|
|
369
|
+
Components.detect = function(rule) {
|
|
370
|
+
return componentRule.bind(this, rule);
|
|
371
|
+
};
|
|
372
|
+
module.exports = Components;
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/lib/util/stylesheet.js
|
|
377
|
+
var require_stylesheet = __commonJS({
|
|
378
|
+
"../../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) {
|
|
379
|
+
init_esm_shims();
|
|
380
|
+
function StyleSheets() {
|
|
381
|
+
this.styleSheets = {};
|
|
382
|
+
}
|
|
383
|
+
StyleSheets.prototype.add = function(styleSheetName, properties2) {
|
|
384
|
+
this.styleSheets[styleSheetName] = properties2;
|
|
385
|
+
};
|
|
386
|
+
StyleSheets.prototype.markAsUsed = function(fullyQualifiedName) {
|
|
387
|
+
const nameSplit = fullyQualifiedName.split(".");
|
|
388
|
+
const styleSheetName = nameSplit[0];
|
|
389
|
+
const styleSheetProperty = nameSplit[1];
|
|
390
|
+
if (this.styleSheets[styleSheetName]) {
|
|
391
|
+
this.styleSheets[styleSheetName] = this.styleSheets[styleSheetName].filter((property) => property.key.name !== styleSheetProperty);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
StyleSheets.prototype.getUnusedReferences = function() {
|
|
395
|
+
return this.styleSheets;
|
|
396
|
+
};
|
|
397
|
+
StyleSheets.prototype.addColorLiterals = function(expressions) {
|
|
398
|
+
if (!this.colorLiterals) {
|
|
399
|
+
this.colorLiterals = [];
|
|
400
|
+
}
|
|
401
|
+
this.colorLiterals = this.colorLiterals.concat(expressions);
|
|
402
|
+
};
|
|
403
|
+
StyleSheets.prototype.getColorLiterals = function() {
|
|
404
|
+
return this.colorLiterals;
|
|
405
|
+
};
|
|
406
|
+
StyleSheets.prototype.addObjectExpressions = function(expressions) {
|
|
407
|
+
if (!this.objectExpressions) {
|
|
408
|
+
this.objectExpressions = [];
|
|
409
|
+
}
|
|
410
|
+
this.objectExpressions = this.objectExpressions.concat(expressions);
|
|
411
|
+
};
|
|
412
|
+
StyleSheets.prototype.getObjectExpressions = function() {
|
|
413
|
+
return this.objectExpressions;
|
|
414
|
+
};
|
|
415
|
+
var currentContent;
|
|
416
|
+
var getSourceCode = (node2) => currentContent.getSourceCode(node2).getText(node2);
|
|
417
|
+
var getStyleSheetObjectNames = (settings) => settings["react-native/style-sheet-object-names"] || ["StyleSheet"];
|
|
418
|
+
var astHelpers = {
|
|
419
|
+
containsStyleSheetObject: function(node2, objectNames) {
|
|
420
|
+
return Boolean(
|
|
421
|
+
node2 && node2.type === "CallExpression" && node2.callee && node2.callee.object && node2.callee.object.name && objectNames.includes(node2.callee.object.name)
|
|
422
|
+
);
|
|
423
|
+
},
|
|
424
|
+
containsCreateCall: function(node2) {
|
|
425
|
+
return Boolean(
|
|
426
|
+
node2 && node2.callee && node2.callee.property && node2.callee.property.name === "create"
|
|
427
|
+
);
|
|
428
|
+
},
|
|
429
|
+
isStyleSheetDeclaration: function(node2, settings) {
|
|
430
|
+
const objectNames = getStyleSheetObjectNames(settings);
|
|
431
|
+
return Boolean(
|
|
432
|
+
astHelpers.containsStyleSheetObject(node2, objectNames) && astHelpers.containsCreateCall(node2)
|
|
433
|
+
);
|
|
434
|
+
},
|
|
435
|
+
getStyleSheetName: function(node2) {
|
|
436
|
+
if (node2 && node2.parent && node2.parent.id) {
|
|
437
|
+
return node2.parent.id.name;
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
getStyleDeclarations: function(node2) {
|
|
441
|
+
if (node2 && node2.type === "CallExpression" && node2.arguments && node2.arguments[0] && node2.arguments[0].properties) {
|
|
442
|
+
return node2.arguments[0].properties.filter((property) => property.type === "Property");
|
|
443
|
+
}
|
|
444
|
+
return [];
|
|
445
|
+
},
|
|
446
|
+
getStyleDeclarationsChunks: function(node2) {
|
|
447
|
+
if (node2 && node2.type === "CallExpression" && node2.arguments && node2.arguments[0] && node2.arguments[0].properties) {
|
|
448
|
+
const { properties: properties2 } = node2.arguments[0];
|
|
449
|
+
const result = [];
|
|
450
|
+
let chunk = [];
|
|
451
|
+
for (let i = 0; i < properties2.length; i += 1) {
|
|
452
|
+
const property = properties2[i];
|
|
453
|
+
if (property.type === "Property") {
|
|
454
|
+
chunk.push(property);
|
|
455
|
+
} else if (chunk.length) {
|
|
456
|
+
result.push(chunk);
|
|
457
|
+
chunk = [];
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
if (chunk.length) {
|
|
461
|
+
result.push(chunk);
|
|
462
|
+
}
|
|
463
|
+
return result;
|
|
464
|
+
}
|
|
465
|
+
return [];
|
|
466
|
+
},
|
|
467
|
+
getPropertiesChunks: function(properties2) {
|
|
468
|
+
const result = [];
|
|
469
|
+
let chunk = [];
|
|
470
|
+
for (let i = 0; i < properties2.length; i += 1) {
|
|
471
|
+
const property = properties2[i];
|
|
472
|
+
if (property.type === "Property") {
|
|
473
|
+
chunk.push(property);
|
|
474
|
+
} else if (chunk.length) {
|
|
475
|
+
result.push(chunk);
|
|
476
|
+
chunk = [];
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
if (chunk.length) {
|
|
480
|
+
result.push(chunk);
|
|
481
|
+
}
|
|
482
|
+
return result;
|
|
483
|
+
},
|
|
484
|
+
getExpressionIdentifier: function(node2) {
|
|
485
|
+
if (node2) {
|
|
486
|
+
switch (node2.type) {
|
|
487
|
+
case "Identifier":
|
|
488
|
+
return node2.name;
|
|
489
|
+
case "Literal":
|
|
490
|
+
return node2.value;
|
|
491
|
+
case "TemplateLiteral":
|
|
492
|
+
return node2.quasis.reduce(
|
|
493
|
+
(result, quasi, index) => result + quasi.value.cooked + astHelpers.getExpressionIdentifier(node2.expressions[index]),
|
|
494
|
+
""
|
|
495
|
+
);
|
|
496
|
+
default:
|
|
497
|
+
return "";
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
return "";
|
|
501
|
+
},
|
|
502
|
+
getStylePropertyIdentifier: function(node2) {
|
|
503
|
+
if (node2 && node2.key) {
|
|
504
|
+
return astHelpers.getExpressionIdentifier(node2.key);
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
isStyleAttribute: function(node2) {
|
|
508
|
+
return Boolean(
|
|
509
|
+
node2.type === "JSXAttribute" && node2.name && node2.name.name && node2.name.name.toLowerCase().includes("style")
|
|
510
|
+
);
|
|
511
|
+
},
|
|
512
|
+
collectStyleObjectExpressions: function(node2, context) {
|
|
513
|
+
currentContent = context;
|
|
514
|
+
if (astHelpers.hasArrayOfStyleReferences(node2)) {
|
|
515
|
+
const styleReferenceContainers = node2.expression.elements;
|
|
516
|
+
return astHelpers.collectStyleObjectExpressionFromContainers(
|
|
517
|
+
styleReferenceContainers
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
if (node2 && node2.expression) {
|
|
521
|
+
return astHelpers.getStyleObjectExpressionFromNode(node2.expression);
|
|
522
|
+
}
|
|
523
|
+
return [];
|
|
524
|
+
},
|
|
525
|
+
collectColorLiterals: function(node2, context) {
|
|
526
|
+
if (!node2) {
|
|
527
|
+
return [];
|
|
528
|
+
}
|
|
529
|
+
currentContent = context;
|
|
530
|
+
if (astHelpers.hasArrayOfStyleReferences(node2)) {
|
|
531
|
+
const styleReferenceContainers = node2.expression.elements;
|
|
532
|
+
return astHelpers.collectColorLiteralsFromContainers(
|
|
533
|
+
styleReferenceContainers
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
if (node2.type === "ObjectExpression") {
|
|
537
|
+
return astHelpers.getColorLiteralsFromNode(node2);
|
|
538
|
+
}
|
|
539
|
+
return astHelpers.getColorLiteralsFromNode(node2.expression);
|
|
540
|
+
},
|
|
541
|
+
collectStyleObjectExpressionFromContainers: function(nodes) {
|
|
542
|
+
let objectExpressions = [];
|
|
543
|
+
nodes.forEach((node2) => {
|
|
544
|
+
objectExpressions = objectExpressions.concat(astHelpers.getStyleObjectExpressionFromNode(node2));
|
|
545
|
+
});
|
|
546
|
+
return objectExpressions;
|
|
547
|
+
},
|
|
548
|
+
collectColorLiteralsFromContainers: function(nodes) {
|
|
549
|
+
let colorLiterals = [];
|
|
550
|
+
nodes.forEach((node2) => {
|
|
551
|
+
colorLiterals = colorLiterals.concat(astHelpers.getColorLiteralsFromNode(node2));
|
|
552
|
+
});
|
|
553
|
+
return colorLiterals;
|
|
554
|
+
},
|
|
555
|
+
getStyleReferenceFromNode: function(node2) {
|
|
556
|
+
let styleReference;
|
|
557
|
+
let leftStyleReferences;
|
|
558
|
+
let rightStyleReferences;
|
|
559
|
+
if (!node2) {
|
|
560
|
+
return [];
|
|
561
|
+
}
|
|
562
|
+
switch (node2.type) {
|
|
563
|
+
case "MemberExpression":
|
|
564
|
+
styleReference = astHelpers.getStyleReferenceFromExpression(node2);
|
|
565
|
+
return [styleReference];
|
|
566
|
+
case "LogicalExpression":
|
|
567
|
+
leftStyleReferences = astHelpers.getStyleReferenceFromNode(node2.left);
|
|
568
|
+
rightStyleReferences = astHelpers.getStyleReferenceFromNode(node2.right);
|
|
569
|
+
return [].concat(leftStyleReferences).concat(rightStyleReferences);
|
|
570
|
+
case "ConditionalExpression":
|
|
571
|
+
leftStyleReferences = astHelpers.getStyleReferenceFromNode(node2.consequent);
|
|
572
|
+
rightStyleReferences = astHelpers.getStyleReferenceFromNode(node2.alternate);
|
|
573
|
+
return [].concat(leftStyleReferences).concat(rightStyleReferences);
|
|
574
|
+
default:
|
|
575
|
+
return [];
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
getStyleObjectExpressionFromNode: function(node2) {
|
|
579
|
+
let leftStyleObjectExpression;
|
|
580
|
+
let rightStyleObjectExpression;
|
|
581
|
+
if (!node2) {
|
|
582
|
+
return [];
|
|
583
|
+
}
|
|
584
|
+
if (node2.type === "ObjectExpression") {
|
|
585
|
+
return [astHelpers.getStyleObjectFromExpression(node2)];
|
|
586
|
+
}
|
|
587
|
+
switch (node2.type) {
|
|
588
|
+
case "LogicalExpression":
|
|
589
|
+
leftStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.left);
|
|
590
|
+
rightStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.right);
|
|
591
|
+
return [].concat(leftStyleObjectExpression).concat(rightStyleObjectExpression);
|
|
592
|
+
case "ConditionalExpression":
|
|
593
|
+
leftStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.consequent);
|
|
594
|
+
rightStyleObjectExpression = astHelpers.getStyleObjectExpressionFromNode(node2.alternate);
|
|
595
|
+
return [].concat(leftStyleObjectExpression).concat(rightStyleObjectExpression);
|
|
596
|
+
default:
|
|
597
|
+
return [];
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
getColorLiteralsFromNode: function(node2) {
|
|
601
|
+
let leftColorLiterals;
|
|
602
|
+
let rightColorLiterals;
|
|
603
|
+
if (!node2) {
|
|
604
|
+
return [];
|
|
605
|
+
}
|
|
606
|
+
if (node2.type === "ObjectExpression") {
|
|
607
|
+
return [astHelpers.getColorLiteralsFromExpression(node2)];
|
|
608
|
+
}
|
|
609
|
+
switch (node2.type) {
|
|
610
|
+
case "LogicalExpression":
|
|
611
|
+
leftColorLiterals = astHelpers.getColorLiteralsFromNode(node2.left);
|
|
612
|
+
rightColorLiterals = astHelpers.getColorLiteralsFromNode(node2.right);
|
|
613
|
+
return [].concat(leftColorLiterals).concat(rightColorLiterals);
|
|
614
|
+
case "ConditionalExpression":
|
|
615
|
+
leftColorLiterals = astHelpers.getColorLiteralsFromNode(node2.consequent);
|
|
616
|
+
rightColorLiterals = astHelpers.getColorLiteralsFromNode(node2.alternate);
|
|
617
|
+
return [].concat(leftColorLiterals).concat(rightColorLiterals);
|
|
618
|
+
default:
|
|
619
|
+
return [];
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
hasArrayOfStyleReferences: function(node2) {
|
|
623
|
+
return node2 && Boolean(
|
|
624
|
+
node2.type === "JSXExpressionContainer" && node2.expression && node2.expression.type === "ArrayExpression"
|
|
625
|
+
);
|
|
626
|
+
},
|
|
627
|
+
getStyleReferenceFromExpression: function(node2) {
|
|
628
|
+
const result = [];
|
|
629
|
+
const name3 = astHelpers.getObjectName(node2);
|
|
630
|
+
if (name3) {
|
|
631
|
+
result.push(name3);
|
|
632
|
+
}
|
|
633
|
+
const property = astHelpers.getPropertyName(node2);
|
|
634
|
+
if (property) {
|
|
635
|
+
result.push(property);
|
|
636
|
+
}
|
|
637
|
+
return result.join(".");
|
|
638
|
+
},
|
|
639
|
+
getStyleObjectFromExpression: function(node2) {
|
|
640
|
+
const obj = {};
|
|
641
|
+
let invalid = false;
|
|
642
|
+
if (node2.properties && node2.properties.length) {
|
|
643
|
+
node2.properties.forEach((p) => {
|
|
644
|
+
if (!p.value || !p.key) {
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
if (p.value.type === "Literal") {
|
|
648
|
+
invalid = true;
|
|
649
|
+
obj[p.key.name] = p.value.value;
|
|
650
|
+
} else if (p.value.type === "ConditionalExpression") {
|
|
651
|
+
const innerNode = p.value;
|
|
652
|
+
if (innerNode.consequent.type === "Literal" || innerNode.alternate.type === "Literal") {
|
|
653
|
+
invalid = true;
|
|
654
|
+
obj[p.key.name] = getSourceCode(innerNode);
|
|
655
|
+
}
|
|
656
|
+
} else if (p.value.type === "UnaryExpression" && p.value.operator === "-" && p.value.argument.type === "Literal") {
|
|
657
|
+
invalid = true;
|
|
658
|
+
obj[p.key.name] = -1 * p.value.argument.value;
|
|
659
|
+
} else if (p.value.type === "UnaryExpression" && p.value.operator === "+" && p.value.argument.type === "Literal") {
|
|
660
|
+
invalid = true;
|
|
661
|
+
obj[p.key.name] = p.value.argument.value;
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
return invalid ? { expression: obj, node: node2 } : void 0;
|
|
666
|
+
},
|
|
667
|
+
getColorLiteralsFromExpression: function(node2) {
|
|
668
|
+
const obj = {};
|
|
669
|
+
let invalid = false;
|
|
670
|
+
if (node2.properties && node2.properties.length) {
|
|
671
|
+
node2.properties.forEach((p) => {
|
|
672
|
+
if (p.key && p.key.name && p.key.name.toLowerCase().indexOf("color") !== -1) {
|
|
673
|
+
if (p.value.type === "Literal") {
|
|
674
|
+
invalid = true;
|
|
675
|
+
obj[p.key.name] = p.value.value;
|
|
676
|
+
} else if (p.value.type === "ConditionalExpression") {
|
|
677
|
+
const innerNode = p.value;
|
|
678
|
+
if (innerNode.consequent.type === "Literal" || innerNode.alternate.type === "Literal") {
|
|
679
|
+
invalid = true;
|
|
680
|
+
obj[p.key.name] = getSourceCode(innerNode);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
return invalid ? { expression: obj, node: node2 } : void 0;
|
|
687
|
+
},
|
|
688
|
+
getObjectName: function(node2) {
|
|
689
|
+
if (node2 && node2.object && node2.object.name) {
|
|
690
|
+
return node2.object.name;
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
getPropertyName: function(node2) {
|
|
694
|
+
if (node2 && node2.property && node2.property.name) {
|
|
695
|
+
return node2.property.name;
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
getPotentialStyleReferenceFromMemberExpression: function(node2) {
|
|
699
|
+
if (node2 && node2.object && node2.object.type === "Identifier" && node2.object.name && node2.property && node2.property.type === "Identifier" && node2.property.name && node2.parent.type !== "MemberExpression") {
|
|
700
|
+
return [node2.object.name, node2.property.name].join(".");
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
isEitherShortHand: function(property1, property2) {
|
|
704
|
+
const shorthands = ["margin", "padding", "border", "flex"];
|
|
705
|
+
if (shorthands.includes(property1)) {
|
|
706
|
+
return property2.startsWith(property1);
|
|
707
|
+
}
|
|
708
|
+
if (shorthands.includes(property2)) {
|
|
709
|
+
return property1.startsWith(property2);
|
|
710
|
+
}
|
|
711
|
+
return false;
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
module.exports.astHelpers = astHelpers;
|
|
715
|
+
module.exports.StyleSheets = StyleSheets;
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
|
|
719
|
+
// ../../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
|
|
720
|
+
var require_no_unused_styles = __commonJS({
|
|
721
|
+
"../../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) {
|
|
722
|
+
init_esm_shims();
|
|
723
|
+
var __import____util_Components = __toESM(require_Components());
|
|
724
|
+
var __import____util_stylesheet = __toESM(require_stylesheet());
|
|
725
|
+
var Components = __import____util_Components;
|
|
726
|
+
var styleSheet = __import____util_stylesheet;
|
|
727
|
+
var { StyleSheets } = styleSheet;
|
|
728
|
+
var { astHelpers } = styleSheet;
|
|
729
|
+
var create = Components.detect((context, components) => {
|
|
730
|
+
const styleSheets = new StyleSheets();
|
|
731
|
+
const styleReferences = /* @__PURE__ */ new Set();
|
|
732
|
+
function reportUnusedStyles(unusedStyles) {
|
|
733
|
+
Object.keys(unusedStyles).forEach((key) => {
|
|
734
|
+
if ({}.hasOwnProperty.call(unusedStyles, key)) {
|
|
735
|
+
const styles = unusedStyles[key];
|
|
736
|
+
styles.forEach((node2) => {
|
|
737
|
+
const message2 = [
|
|
738
|
+
"Unused style detected: ",
|
|
739
|
+
key,
|
|
740
|
+
".",
|
|
741
|
+
node2.key.name
|
|
742
|
+
].join("");
|
|
743
|
+
context.report(node2, message2);
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
return {
|
|
749
|
+
MemberExpression: function(node2) {
|
|
750
|
+
const styleRef = astHelpers.getPotentialStyleReferenceFromMemberExpression(node2);
|
|
751
|
+
if (styleRef) {
|
|
752
|
+
styleReferences.add(styleRef);
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
CallExpression: function(node2) {
|
|
756
|
+
if (astHelpers.isStyleSheetDeclaration(node2, context.settings)) {
|
|
757
|
+
const styleSheetName = astHelpers.getStyleSheetName(node2);
|
|
758
|
+
const styles = astHelpers.getStyleDeclarations(node2);
|
|
759
|
+
styleSheets.add(styleSheetName, styles);
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"Program:exit": function() {
|
|
763
|
+
const list = components.all();
|
|
764
|
+
if (Object.keys(list).length > 0) {
|
|
765
|
+
styleReferences.forEach((reference) => {
|
|
766
|
+
styleSheets.markAsUsed(reference);
|
|
767
|
+
});
|
|
768
|
+
reportUnusedStyles(styleSheets.getUnusedReferences());
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
});
|
|
773
|
+
module.exports = {
|
|
774
|
+
meta: {
|
|
775
|
+
schema: []
|
|
776
|
+
},
|
|
777
|
+
create
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
var require_no_inline_styles = __commonJS({
|
|
782
|
+
"../../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) {
|
|
783
|
+
init_esm_shims();
|
|
784
|
+
var __import____util_Components = __toESM(require_Components());
|
|
785
|
+
var __import____util_stylesheet = __toESM(require_stylesheet());
|
|
786
|
+
var util = __import_util;
|
|
787
|
+
var Components = __import____util_Components;
|
|
788
|
+
var styleSheet = __import____util_stylesheet;
|
|
789
|
+
var { StyleSheets } = styleSheet;
|
|
790
|
+
var { astHelpers } = styleSheet;
|
|
791
|
+
var create = Components.detect((context) => {
|
|
792
|
+
const styleSheets = new StyleSheets();
|
|
793
|
+
function reportInlineStyles(inlineStyles) {
|
|
794
|
+
if (inlineStyles) {
|
|
795
|
+
inlineStyles.forEach((style) => {
|
|
796
|
+
if (style) {
|
|
797
|
+
const expression = util.inspect(style.expression);
|
|
798
|
+
context.report({
|
|
799
|
+
node: style.node,
|
|
800
|
+
message: "Inline style: {{expression}}",
|
|
801
|
+
data: { expression }
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
return {
|
|
808
|
+
JSXAttribute: (node2) => {
|
|
809
|
+
if (astHelpers.isStyleAttribute(node2)) {
|
|
810
|
+
const styles = astHelpers.collectStyleObjectExpressions(node2.value, context);
|
|
811
|
+
styleSheets.addObjectExpressions(styles);
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"Program:exit": () => reportInlineStyles(styleSheets.getObjectExpressions())
|
|
815
|
+
};
|
|
816
|
+
});
|
|
817
|
+
module.exports = {
|
|
818
|
+
meta: {
|
|
819
|
+
schema: []
|
|
820
|
+
},
|
|
821
|
+
create
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
var require_no_color_literals = __commonJS({
|
|
826
|
+
"../../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) {
|
|
827
|
+
init_esm_shims();
|
|
828
|
+
var __import____util_Components = __toESM(require_Components());
|
|
829
|
+
var __import____util_stylesheet = __toESM(require_stylesheet());
|
|
830
|
+
var util = __import_util;
|
|
831
|
+
var Components = __import____util_Components;
|
|
832
|
+
var styleSheet = __import____util_stylesheet;
|
|
833
|
+
var { StyleSheets } = styleSheet;
|
|
834
|
+
var { astHelpers } = styleSheet;
|
|
835
|
+
var create = Components.detect((context) => {
|
|
836
|
+
const styleSheets = new StyleSheets();
|
|
837
|
+
function reportColorLiterals(colorLiterals) {
|
|
838
|
+
if (colorLiterals) {
|
|
839
|
+
colorLiterals.forEach((style) => {
|
|
840
|
+
if (style) {
|
|
841
|
+
const expression = util.inspect(style.expression);
|
|
842
|
+
context.report({
|
|
843
|
+
node: style.node,
|
|
844
|
+
message: "Color literal: {{expression}}",
|
|
845
|
+
data: { expression }
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
return {
|
|
852
|
+
CallExpression: (node2) => {
|
|
853
|
+
if (astHelpers.isStyleSheetDeclaration(node2, context.settings)) {
|
|
854
|
+
const styles = astHelpers.getStyleDeclarations(node2);
|
|
855
|
+
if (styles) {
|
|
856
|
+
styles.forEach((style) => {
|
|
857
|
+
const literals = astHelpers.collectColorLiterals(style.value, context);
|
|
858
|
+
styleSheets.addColorLiterals(literals);
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
JSXAttribute: (node2) => {
|
|
864
|
+
if (astHelpers.isStyleAttribute(node2)) {
|
|
865
|
+
const literals = astHelpers.collectColorLiterals(node2.value, context);
|
|
866
|
+
styleSheets.addColorLiterals(literals);
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"Program:exit": () => reportColorLiterals(styleSheets.getColorLiterals())
|
|
870
|
+
};
|
|
871
|
+
});
|
|
872
|
+
module.exports = {
|
|
873
|
+
meta: {
|
|
874
|
+
schema: []
|
|
875
|
+
},
|
|
876
|
+
create
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
|
|
881
|
+
// ../../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
|
|
882
|
+
var require_sort_styles = __commonJS({
|
|
883
|
+
"../../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) {
|
|
884
|
+
init_esm_shims();
|
|
885
|
+
var __import____util_stylesheet = __toESM(require_stylesheet());
|
|
886
|
+
var { astHelpers } = __import____util_stylesheet;
|
|
887
|
+
var {
|
|
888
|
+
getStyleDeclarationsChunks,
|
|
889
|
+
getPropertiesChunks,
|
|
890
|
+
getStylePropertyIdentifier,
|
|
891
|
+
isStyleSheetDeclaration,
|
|
892
|
+
isEitherShortHand
|
|
893
|
+
} = astHelpers;
|
|
894
|
+
function create(context) {
|
|
895
|
+
const order = context.options[0] || "asc";
|
|
896
|
+
const options = context.options[1] || {};
|
|
897
|
+
const { ignoreClassNames } = options;
|
|
898
|
+
const { ignoreStyleProperties } = options;
|
|
899
|
+
const isValidOrder = order === "asc" ? (a, b) => a <= b : (a, b) => a >= b;
|
|
900
|
+
const sourceCode = context.sourceCode ?? context.getSourceCode();
|
|
901
|
+
function sort(array2) {
|
|
902
|
+
return [].concat(array2).sort((a, b) => {
|
|
903
|
+
const identifierA = getStylePropertyIdentifier(a);
|
|
904
|
+
const identifierB = getStylePropertyIdentifier(b);
|
|
905
|
+
let sortOrder = 0;
|
|
906
|
+
if (isEitherShortHand(identifierA, identifierB)) {
|
|
907
|
+
return a.range[0] - b.range[0];
|
|
908
|
+
}
|
|
909
|
+
if (identifierA < identifierB) {
|
|
910
|
+
sortOrder = -1;
|
|
911
|
+
} else if (identifierA > identifierB) {
|
|
912
|
+
sortOrder = 1;
|
|
913
|
+
}
|
|
914
|
+
return sortOrder * (order === "asc" ? 1 : -1);
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
function report(array2, type, node2, prev, current) {
|
|
918
|
+
const currentName = getStylePropertyIdentifier(current);
|
|
919
|
+
const prevName = getStylePropertyIdentifier(prev);
|
|
920
|
+
const hasComments = array2.map((prop) => [...sourceCode.getCommentsBefore(prop), ...sourceCode.getCommentsAfter(prop)]).reduce(
|
|
921
|
+
(hasComment, comment) => hasComment || comment.length > 0,
|
|
922
|
+
false
|
|
923
|
+
);
|
|
924
|
+
context.report({
|
|
925
|
+
node: node2,
|
|
926
|
+
message: `Expected ${type} to be in ${order}ending order. '${currentName}' should be before '${prevName}'.`,
|
|
927
|
+
loc: current.key.loc,
|
|
928
|
+
fix: hasComments ? void 0 : (fixer) => {
|
|
929
|
+
const sortedArray = sort(array2);
|
|
930
|
+
return array2.map((item, i) => {
|
|
931
|
+
if (item !== sortedArray[i]) {
|
|
932
|
+
return fixer.replaceText(
|
|
933
|
+
item,
|
|
934
|
+
sourceCode.getText(sortedArray[i])
|
|
935
|
+
);
|
|
936
|
+
}
|
|
937
|
+
return null;
|
|
938
|
+
}).filter(Boolean);
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
function checkIsSorted(array2, arrayName, node2) {
|
|
943
|
+
for (let i = 1; i < array2.length; i += 1) {
|
|
944
|
+
const previous = array2[i - 1];
|
|
945
|
+
const current = array2[i];
|
|
946
|
+
if (previous.type !== "Property" || current.type !== "Property") {
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
const prevName = getStylePropertyIdentifier(previous);
|
|
950
|
+
const currentName = getStylePropertyIdentifier(current);
|
|
951
|
+
const oneIsShorthandForTheOther = arrayName === "style properties" && isEitherShortHand(prevName, currentName);
|
|
952
|
+
if (!oneIsShorthandForTheOther && !isValidOrder(prevName, currentName)) {
|
|
953
|
+
return report(array2, arrayName, node2, previous, current);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return {
|
|
958
|
+
CallExpression: function(node2) {
|
|
959
|
+
if (!isStyleSheetDeclaration(node2, context.settings)) {
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
const classDefinitionsChunks = getStyleDeclarationsChunks(node2);
|
|
963
|
+
if (!ignoreClassNames) {
|
|
964
|
+
classDefinitionsChunks.forEach((classDefinitions) => {
|
|
965
|
+
checkIsSorted(classDefinitions, "class names", node2);
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
if (ignoreStyleProperties) return;
|
|
969
|
+
classDefinitionsChunks.forEach((classDefinitions) => {
|
|
970
|
+
classDefinitions.forEach((classDefinition) => {
|
|
971
|
+
const styleProperties = classDefinition.value.properties;
|
|
972
|
+
if (!styleProperties || styleProperties.length < 2) {
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
const stylePropertyChunks = getPropertiesChunks(styleProperties);
|
|
976
|
+
stylePropertyChunks.forEach((stylePropertyChunk) => {
|
|
977
|
+
checkIsSorted(stylePropertyChunk, "style properties", node2);
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
module.exports = {
|
|
985
|
+
meta: {
|
|
986
|
+
fixable: "code",
|
|
987
|
+
schema: [
|
|
988
|
+
{
|
|
989
|
+
enum: ["asc", "desc"]
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
type: "object",
|
|
993
|
+
properties: {
|
|
994
|
+
ignoreClassNames: {
|
|
995
|
+
type: "boolean"
|
|
996
|
+
},
|
|
997
|
+
ignoreStyleProperties: {
|
|
998
|
+
type: "boolean"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
additionalProperties: false
|
|
1002
|
+
}
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
1005
|
+
create
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
// ../../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
|
|
1011
|
+
var require_split_platform_components = __commonJS({
|
|
1012
|
+
"../../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) {
|
|
1013
|
+
init_esm_shims();
|
|
1014
|
+
function create(context) {
|
|
1015
|
+
let reactComponents = [];
|
|
1016
|
+
const androidMessage = "Android components should be placed in android files";
|
|
1017
|
+
const iosMessage = "IOS components should be placed in ios files";
|
|
1018
|
+
const conflictMessage = "IOS and Android components can't be mixed";
|
|
1019
|
+
const iosPathRegex = context.options[0] && context.options[0].iosPathRegex ? new RegExp(context.options[0].iosPathRegex) : /\.ios\.[j|t]sx?$/;
|
|
1020
|
+
const androidPathRegex = context.options[0] && context.options[0].androidPathRegex ? new RegExp(context.options[0].androidPathRegex) : /\.android\.[j|t]sx?$/;
|
|
1021
|
+
function getName(node2) {
|
|
1022
|
+
if (node2.type === "Property") {
|
|
1023
|
+
const key = node2.key || node2.argument;
|
|
1024
|
+
return key.type === "Identifier" ? key.name : key.value;
|
|
1025
|
+
}
|
|
1026
|
+
if (node2.type === "Identifier") {
|
|
1027
|
+
return node2.name;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
function hasNodeWithName(nodes, name3) {
|
|
1031
|
+
return nodes.some((node2) => {
|
|
1032
|
+
const nodeName = getName(node2);
|
|
1033
|
+
return nodeName && nodeName.includes(name3);
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
function reportErrors(components, filename) {
|
|
1037
|
+
const containsAndroidAndIOS = hasNodeWithName(components, "IOS") && hasNodeWithName(components, "Android");
|
|
1038
|
+
components.forEach((node2) => {
|
|
1039
|
+
const propName = getName(node2);
|
|
1040
|
+
if (propName.includes("IOS") && !filename.match(iosPathRegex)) {
|
|
1041
|
+
context.report(node2, containsAndroidAndIOS ? conflictMessage : iosMessage);
|
|
1042
|
+
}
|
|
1043
|
+
if (propName.includes("Android") && !filename.match(androidPathRegex)) {
|
|
1044
|
+
context.report(node2, containsAndroidAndIOS ? conflictMessage : androidMessage);
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
return {
|
|
1049
|
+
VariableDeclarator: function(node2) {
|
|
1050
|
+
const destructuring = node2.init && node2.id && node2.id.type === "ObjectPattern";
|
|
1051
|
+
const statelessDestructuring = destructuring && node2.init.name === "React";
|
|
1052
|
+
if (destructuring && statelessDestructuring) {
|
|
1053
|
+
reactComponents = reactComponents.concat(node2.id.properties);
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
ImportDeclaration: function(node2) {
|
|
1057
|
+
if (node2.source.value === "react-native") {
|
|
1058
|
+
node2.specifiers.forEach((importSpecifier) => {
|
|
1059
|
+
if (importSpecifier.type === "ImportSpecifier") {
|
|
1060
|
+
reactComponents = reactComponents.concat(importSpecifier.imported);
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
"Program:exit": function() {
|
|
1066
|
+
const filename = context.getFilename();
|
|
1067
|
+
reportErrors(reactComponents, filename);
|
|
1068
|
+
}
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
module.exports = {
|
|
1072
|
+
meta: {
|
|
1073
|
+
fixable: "code",
|
|
1074
|
+
schema: [{
|
|
1075
|
+
type: "object",
|
|
1076
|
+
properties: {
|
|
1077
|
+
androidPathRegex: {
|
|
1078
|
+
type: "string"
|
|
1079
|
+
},
|
|
1080
|
+
iosPathRegex: {
|
|
1081
|
+
type: "string"
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
additionalProperties: false
|
|
1085
|
+
}]
|
|
1086
|
+
},
|
|
1087
|
+
create
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
|
|
1092
|
+
// ../../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
|
|
1093
|
+
var require_no_raw_text = __commonJS({
|
|
1094
|
+
"../../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) {
|
|
1095
|
+
init_esm_shims();
|
|
1096
|
+
var elementName = (node2) => {
|
|
1097
|
+
const reversedIdentifiers = [];
|
|
1098
|
+
if (node2.type === "JSXElement" && node2.openingElement.type === "JSXOpeningElement") {
|
|
1099
|
+
let object2 = node2.openingElement.name;
|
|
1100
|
+
while (object2.type === "JSXMemberExpression") {
|
|
1101
|
+
if (object2.property.type === "JSXIdentifier") {
|
|
1102
|
+
reversedIdentifiers.push(object2.property.name);
|
|
1103
|
+
}
|
|
1104
|
+
object2 = object2.object;
|
|
1105
|
+
}
|
|
1106
|
+
if (object2.type === "JSXIdentifier") {
|
|
1107
|
+
reversedIdentifiers.push(object2.name);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
return reversedIdentifiers.reverse().join(".");
|
|
1111
|
+
};
|
|
1112
|
+
var hasAllowedParent = (parent, allowedElements) => {
|
|
1113
|
+
let curNode = parent;
|
|
1114
|
+
while (curNode) {
|
|
1115
|
+
if (curNode.type === "JSXElement") {
|
|
1116
|
+
const name3 = elementName(curNode);
|
|
1117
|
+
if (allowedElements.includes(name3)) {
|
|
1118
|
+
return true;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
curNode = curNode.parent;
|
|
1122
|
+
}
|
|
1123
|
+
return false;
|
|
1124
|
+
};
|
|
1125
|
+
function create(context) {
|
|
1126
|
+
const options = context.options[0] || {};
|
|
1127
|
+
const report = (node2) => {
|
|
1128
|
+
const errorValue = node2.type === "TemplateLiteral" ? `TemplateLiteral: ${node2.expressions[0].name}` : node2.value.trim();
|
|
1129
|
+
const formattedErrorValue = errorValue.length > 0 ? `Raw text (${errorValue})` : "Whitespace(s)";
|
|
1130
|
+
context.report({
|
|
1131
|
+
node: node2,
|
|
1132
|
+
message: `${formattedErrorValue} cannot be used outside of a <Text> tag`
|
|
1133
|
+
});
|
|
1134
|
+
};
|
|
1135
|
+
const skippedElements = options.skip ? options.skip : [];
|
|
1136
|
+
const allowedElements = ["Text", "TSpan", "StyledText", "Animated.Text"].concat(skippedElements);
|
|
1137
|
+
const hasOnlyLineBreak = (value) => /^[\r\n\t\f\v]+$/.test(value.replace(/ /g, ""));
|
|
1138
|
+
const getValidation = (node2) => !hasAllowedParent(node2.parent, allowedElements);
|
|
1139
|
+
return {
|
|
1140
|
+
Literal(node2) {
|
|
1141
|
+
const parentType = node2.parent.type;
|
|
1142
|
+
const onlyFor = ["JSXExpressionContainer", "JSXElement"];
|
|
1143
|
+
if (typeof node2.value !== "string" || hasOnlyLineBreak(node2.value) || !onlyFor.includes(parentType) || node2.parent.parent && node2.parent.parent.type === "JSXAttribute") return;
|
|
1144
|
+
const isStringLiteral = parentType === "JSXExpressionContainer";
|
|
1145
|
+
if (getValidation(isStringLiteral ? node2.parent : node2)) {
|
|
1146
|
+
report(node2);
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
JSXText(node2) {
|
|
1150
|
+
if (typeof node2.value !== "string" || hasOnlyLineBreak(node2.value)) return;
|
|
1151
|
+
if (getValidation(node2)) {
|
|
1152
|
+
report(node2);
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
TemplateLiteral(node2) {
|
|
1156
|
+
if (node2.parent.type !== "JSXExpressionContainer" || node2.parent.parent && node2.parent.parent.type === "JSXAttribute") return;
|
|
1157
|
+
if (getValidation(node2.parent)) {
|
|
1158
|
+
report(node2);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
module.exports = {
|
|
1164
|
+
meta: {
|
|
1165
|
+
schema: [
|
|
1166
|
+
{
|
|
1167
|
+
type: "object",
|
|
1168
|
+
properties: {
|
|
1169
|
+
skip: {
|
|
1170
|
+
type: "array",
|
|
1171
|
+
items: {
|
|
1172
|
+
type: "string"
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
additionalProperties: false
|
|
1177
|
+
}
|
|
1178
|
+
]
|
|
1179
|
+
},
|
|
1180
|
+
create
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
|
|
1185
|
+
// ../../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
|
|
1186
|
+
var require_no_single_element_style_arrays = __commonJS({
|
|
1187
|
+
"../../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) {
|
|
1188
|
+
init_esm_shims();
|
|
1189
|
+
module.exports = {
|
|
1190
|
+
meta: {
|
|
1191
|
+
docs: {
|
|
1192
|
+
description: "Disallow single element style arrays. These cause unnecessary re-renders as the identity of the array always changes",
|
|
1193
|
+
category: "Stylistic Issues",
|
|
1194
|
+
recommended: false,
|
|
1195
|
+
url: ""
|
|
1196
|
+
},
|
|
1197
|
+
fixable: "code"
|
|
1198
|
+
},
|
|
1199
|
+
create(context) {
|
|
1200
|
+
function reportNode(JSXExpressionNode) {
|
|
1201
|
+
context.report({
|
|
1202
|
+
node: JSXExpressionNode,
|
|
1203
|
+
message: "Single element style arrays are not necessary and cause unnecessary re-renders",
|
|
1204
|
+
fix(fixer) {
|
|
1205
|
+
const realStyleNode = JSXExpressionNode.value.expression.elements[0];
|
|
1206
|
+
const styleSource = (context.sourceCode ?? context.getSourceCode()).getText(realStyleNode);
|
|
1207
|
+
return fixer.replaceText(JSXExpressionNode.value.expression, styleSource);
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
return {
|
|
1212
|
+
JSXAttribute(node2) {
|
|
1213
|
+
if (node2.name.name !== "style") return;
|
|
1214
|
+
if (!node2.value.expression) return;
|
|
1215
|
+
if (node2.value.expression.type !== "ArrayExpression") return;
|
|
1216
|
+
if (node2.value.expression.elements.length === 1) {
|
|
1217
|
+
reportNode(node2);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
});
|
|
1225
|
+
var require_eslint_plugin_react_native = __commonJS({
|
|
1226
|
+
"../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=1320a4c113a7f7ebb367bb0eaf377bd76dd7730f216_b81403553f777f68c7f42f6dd1713653/node_modules/eslint-plugin-react-native/index.js"(exports, module) {
|
|
1227
|
+
init_esm_shims();
|
|
1228
|
+
var __import___lib_rules_noUnusedStyles = __toESM(require_no_unused_styles());
|
|
1229
|
+
var __import___lib_rules_noInlineStyles = __toESM(require_no_inline_styles());
|
|
1230
|
+
var __import___lib_rules_noColorLiterals = __toESM(require_no_color_literals());
|
|
1231
|
+
var __import___lib_rules_sortStyles = __toESM(require_sort_styles());
|
|
1232
|
+
var __import___lib_rules_splitPlatformComponents = __toESM(require_split_platform_components());
|
|
1233
|
+
var __import___lib_rules_noRawText = __toESM(require_no_raw_text());
|
|
1234
|
+
var __import___lib_rules_noSingleElementStyleArrays = __toESM(require_no_single_element_style_arrays());
|
|
1235
|
+
var allRules = {
|
|
1236
|
+
"no-unused-styles": __import___lib_rules_noUnusedStyles,
|
|
1237
|
+
"no-inline-styles": __import___lib_rules_noInlineStyles,
|
|
1238
|
+
"no-color-literals": __import___lib_rules_noColorLiterals,
|
|
1239
|
+
"sort-styles": __import___lib_rules_sortStyles,
|
|
1240
|
+
"split-platform-components": __import___lib_rules_splitPlatformComponents,
|
|
1241
|
+
"no-raw-text": __import___lib_rules_noRawText,
|
|
1242
|
+
"no-single-element-style-arrays": __import___lib_rules_noSingleElementStyleArrays
|
|
1243
|
+
};
|
|
1244
|
+
function configureAsError(rules5) {
|
|
1245
|
+
const result = {};
|
|
1246
|
+
for (const key in rules5) {
|
|
1247
|
+
if (!rules5.hasOwnProperty(key)) {
|
|
1248
|
+
continue;
|
|
1249
|
+
}
|
|
1250
|
+
result["react-native/" + key] = 2;
|
|
1251
|
+
}
|
|
1252
|
+
return result;
|
|
1253
|
+
}
|
|
1254
|
+
var allRulesConfig = configureAsError(allRules);
|
|
1255
|
+
module.exports = {
|
|
1256
|
+
deprecatedRules: {},
|
|
1257
|
+
rules: allRules,
|
|
1258
|
+
rulesConfig: {
|
|
1259
|
+
"no-unused-styles": 0,
|
|
1260
|
+
"no-inline-styles": 0,
|
|
1261
|
+
"no-color-literals": 0,
|
|
1262
|
+
"sort-styles": 0,
|
|
1263
|
+
"split-platform-components": 0,
|
|
1264
|
+
"no-raw-text": 0,
|
|
1265
|
+
"no-single-element-style-arrays": 0
|
|
1266
|
+
},
|
|
1267
|
+
environments: {
|
|
1268
|
+
"react-native": {
|
|
1269
|
+
globals: __import_eslintPluginReactNativeGlobals.environments.all.globals
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
configs: {
|
|
1273
|
+
all: {
|
|
1274
|
+
plugins: [
|
|
1275
|
+
"react-native"
|
|
1276
|
+
],
|
|
1277
|
+
parserOptions: {
|
|
1278
|
+
ecmaFeatures: {
|
|
1279
|
+
jsx: true
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
rules: allRulesConfig
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
|
|
59
1289
|
// ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
|
|
60
1290
|
var require_Debug = __commonJS({
|
|
61
1291
|
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
|
|
@@ -416,7 +1646,7 @@ var require_lib = __commonJS({
|
|
|
416
1646
|
defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
|
|
417
1647
|
tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
|
|
418
1648
|
});
|
|
419
|
-
var
|
|
1649
|
+
var plugin7 = {
|
|
420
1650
|
rules: {
|
|
421
1651
|
// NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
|
|
422
1652
|
// from the NPM package name, and then appending this string.
|
|
@@ -577,7 +1807,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
577
1807
|
}
|
|
578
1808
|
}
|
|
579
1809
|
};
|
|
580
|
-
module.exports =
|
|
1810
|
+
module.exports = plugin7;
|
|
581
1811
|
}
|
|
582
1812
|
});
|
|
583
1813
|
|
|
@@ -5482,10 +6712,10 @@ init_esm_shims();
|
|
|
5482
6712
|
// src/plugins.ts
|
|
5483
6713
|
init_esm_shims();
|
|
5484
6714
|
|
|
5485
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6715
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/index.js
|
|
5486
6716
|
init_esm_shims();
|
|
5487
6717
|
|
|
5488
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6718
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/electron.js
|
|
5489
6719
|
init_esm_shims();
|
|
5490
6720
|
var electron_default = {
|
|
5491
6721
|
settings: {
|
|
@@ -5493,7 +6723,7 @@ var electron_default = {
|
|
|
5493
6723
|
}
|
|
5494
6724
|
};
|
|
5495
6725
|
|
|
5496
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6726
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/errors.js
|
|
5497
6727
|
init_esm_shims();
|
|
5498
6728
|
var errors_default = {
|
|
5499
6729
|
plugins: ["import-x"],
|
|
@@ -5506,7 +6736,7 @@ var errors_default = {
|
|
|
5506
6736
|
}
|
|
5507
6737
|
};
|
|
5508
6738
|
|
|
5509
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6739
|
+
// ../../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
|
|
5510
6740
|
init_esm_shims();
|
|
5511
6741
|
var electron_default2 = {
|
|
5512
6742
|
settings: {
|
|
@@ -5514,7 +6744,7 @@ var electron_default2 = {
|
|
|
5514
6744
|
}
|
|
5515
6745
|
};
|
|
5516
6746
|
|
|
5517
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6747
|
+
// ../../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
|
|
5518
6748
|
init_esm_shims();
|
|
5519
6749
|
var errors_default2 = {
|
|
5520
6750
|
rules: {
|
|
@@ -5526,7 +6756,7 @@ var errors_default2 = {
|
|
|
5526
6756
|
}
|
|
5527
6757
|
};
|
|
5528
6758
|
|
|
5529
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6759
|
+
// ../../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
|
|
5530
6760
|
init_esm_shims();
|
|
5531
6761
|
var react_native_default = {
|
|
5532
6762
|
settings: {
|
|
@@ -5538,7 +6768,7 @@ var react_native_default = {
|
|
|
5538
6768
|
}
|
|
5539
6769
|
};
|
|
5540
6770
|
|
|
5541
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6771
|
+
// ../../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
|
|
5542
6772
|
init_esm_shims();
|
|
5543
6773
|
var react_default = {
|
|
5544
6774
|
settings: {
|
|
@@ -5553,7 +6783,7 @@ var react_default = {
|
|
|
5553
6783
|
}
|
|
5554
6784
|
};
|
|
5555
6785
|
|
|
5556
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6786
|
+
// ../../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
|
|
5557
6787
|
init_esm_shims();
|
|
5558
6788
|
var recommended_default2 = {
|
|
5559
6789
|
rules: {
|
|
@@ -5568,7 +6798,7 @@ var recommended_default2 = {
|
|
|
5568
6798
|
}
|
|
5569
6799
|
};
|
|
5570
6800
|
|
|
5571
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6801
|
+
// ../../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
|
|
5572
6802
|
init_esm_shims();
|
|
5573
6803
|
var stage_0_default = {
|
|
5574
6804
|
rules: {
|
|
@@ -5576,7 +6806,7 @@ var stage_0_default = {
|
|
|
5576
6806
|
}
|
|
5577
6807
|
};
|
|
5578
6808
|
|
|
5579
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6809
|
+
// ../../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
|
|
5580
6810
|
init_esm_shims();
|
|
5581
6811
|
var typeScriptExtensions = [".ts", ".tsx", ".cts", ".mts"];
|
|
5582
6812
|
var allExtensions = [
|
|
@@ -5602,7 +6832,7 @@ var typescript_default = {
|
|
|
5602
6832
|
}
|
|
5603
6833
|
};
|
|
5604
6834
|
|
|
5605
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6835
|
+
// ../../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
|
|
5606
6836
|
init_esm_shims();
|
|
5607
6837
|
var warnings_default = {
|
|
5608
6838
|
rules: {
|
|
@@ -5613,7 +6843,7 @@ var warnings_default = {
|
|
|
5613
6843
|
}
|
|
5614
6844
|
};
|
|
5615
6845
|
|
|
5616
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6846
|
+
// ../../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
|
|
5617
6847
|
init_esm_shims();
|
|
5618
6848
|
var react_native_default2 = {
|
|
5619
6849
|
settings: {
|
|
@@ -5625,7 +6855,7 @@ var react_native_default2 = {
|
|
|
5625
6855
|
}
|
|
5626
6856
|
};
|
|
5627
6857
|
|
|
5628
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6858
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/react.js
|
|
5629
6859
|
init_esm_shims();
|
|
5630
6860
|
var react_default2 = {
|
|
5631
6861
|
settings: {
|
|
@@ -5638,7 +6868,7 @@ var react_default2 = {
|
|
|
5638
6868
|
}
|
|
5639
6869
|
};
|
|
5640
6870
|
|
|
5641
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6871
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/recommended.js
|
|
5642
6872
|
init_esm_shims();
|
|
5643
6873
|
var recommended_default3 = {
|
|
5644
6874
|
plugins: ["import-x"],
|
|
@@ -5658,7 +6888,7 @@ var recommended_default3 = {
|
|
|
5658
6888
|
}
|
|
5659
6889
|
};
|
|
5660
6890
|
|
|
5661
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6891
|
+
// ../../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
|
|
5662
6892
|
init_esm_shims();
|
|
5663
6893
|
var stage_0_default2 = {
|
|
5664
6894
|
plugins: ["import-x"],
|
|
@@ -5667,7 +6897,7 @@ var stage_0_default2 = {
|
|
|
5667
6897
|
}
|
|
5668
6898
|
};
|
|
5669
6899
|
|
|
5670
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6900
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/typescript.js
|
|
5671
6901
|
init_esm_shims();
|
|
5672
6902
|
var typeScriptExtensions2 = [".ts", ".tsx", ".cts", ".mts"];
|
|
5673
6903
|
var allExtensions2 = [
|
|
@@ -5693,7 +6923,7 @@ var typescript_default2 = {
|
|
|
5693
6923
|
}
|
|
5694
6924
|
};
|
|
5695
6925
|
|
|
5696
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6926
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/config/warnings.js
|
|
5697
6927
|
init_esm_shims();
|
|
5698
6928
|
var warnings_default2 = {
|
|
5699
6929
|
plugins: ["import-x"],
|
|
@@ -5705,19 +6935,19 @@ var warnings_default2 = {
|
|
|
5705
6935
|
}
|
|
5706
6936
|
};
|
|
5707
6937
|
|
|
5708
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6938
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/meta.js
|
|
5709
6939
|
init_esm_shims();
|
|
5710
6940
|
|
|
5711
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6941
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/require.js
|
|
5712
6942
|
init_esm_shims();
|
|
5713
6943
|
var importMetaUrl = import.meta.url;
|
|
5714
6944
|
var cjsRequire = importMetaUrl ? createRequire(importMetaUrl) : __require;
|
|
5715
6945
|
|
|
5716
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6946
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/meta.js
|
|
5717
6947
|
var { name, version: version2 } = cjsRequire("../package.json");
|
|
5718
6948
|
var meta2 = { name, version: version2 };
|
|
5719
6949
|
|
|
5720
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6950
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/node-resolver.js
|
|
5721
6951
|
init_esm_shims();
|
|
5722
6952
|
function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".node"], conditionNames = ["import", "require", "default"], mainFields = ["module", "main"], ...restOptions } = {}) {
|
|
5723
6953
|
const resolver = new ResolverFactory({
|
|
@@ -5745,16 +6975,16 @@ function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".no
|
|
|
5745
6975
|
};
|
|
5746
6976
|
}
|
|
5747
6977
|
|
|
5748
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6978
|
+
// ../../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
|
|
5749
6979
|
init_esm_shims();
|
|
5750
6980
|
|
|
5751
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6981
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/index.js
|
|
5752
6982
|
init_esm_shims();
|
|
5753
6983
|
|
|
5754
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6984
|
+
// ../../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
|
|
5755
6985
|
init_esm_shims();
|
|
5756
6986
|
|
|
5757
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
6987
|
+
// ../../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
|
|
5758
6988
|
init_esm_shims();
|
|
5759
6989
|
function isObjectNotArray(obj) {
|
|
5760
6990
|
return typeof obj === "object" && obj != null && !Array.isArray(obj);
|
|
@@ -5778,7 +7008,7 @@ function deepMerge(first = {}, second = {}) {
|
|
|
5778
7008
|
}));
|
|
5779
7009
|
}
|
|
5780
7010
|
|
|
5781
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7011
|
+
// ../../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
|
|
5782
7012
|
function applyDefault(defaultOptions, userOptions) {
|
|
5783
7013
|
const options = structuredClone(defaultOptions ?? []);
|
|
5784
7014
|
if (userOptions == null) {
|
|
@@ -5793,19 +7023,19 @@ function applyDefault(defaultOptions, userOptions) {
|
|
|
5793
7023
|
return options;
|
|
5794
7024
|
}
|
|
5795
7025
|
|
|
5796
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7026
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/arraify.js
|
|
5797
7027
|
init_esm_shims();
|
|
5798
7028
|
var arraify = (value) => value ? Array.isArray(value) ? value : [value] : void 0;
|
|
5799
7029
|
|
|
5800
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7030
|
+
// ../../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
|
|
5801
7031
|
init_esm_shims();
|
|
5802
7032
|
|
|
5803
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7033
|
+
// ../../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
|
|
5804
7034
|
init_esm_shims();
|
|
5805
7035
|
var repoUrl = "https://github.com/un-ts/eslint-plugin-import-x";
|
|
5806
7036
|
var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commitish}/docs/rules/${ruleName}.md`;
|
|
5807
7037
|
|
|
5808
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7038
|
+
// ../../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
|
|
5809
7039
|
function RuleCreator2(urlCreator) {
|
|
5810
7040
|
return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
|
|
5811
7041
|
return createRule_({
|
|
@@ -5832,7 +7062,7 @@ function createRule_({ create, defaultOptions, meta: meta3 }) {
|
|
|
5832
7062
|
}
|
|
5833
7063
|
var createRule2 = RuleCreator2(docsUrl);
|
|
5834
7064
|
|
|
5835
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7065
|
+
// ../../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
|
|
5836
7066
|
init_esm_shims();
|
|
5837
7067
|
function declaredScope(context, node2, name3) {
|
|
5838
7068
|
const references = context.sourceCode.getScope(node2).references;
|
|
@@ -5840,10 +7070,10 @@ function declaredScope(context, node2, name3) {
|
|
|
5840
7070
|
return reference?.resolved?.scope.type;
|
|
5841
7071
|
}
|
|
5842
7072
|
|
|
5843
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7073
|
+
// ../../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
|
|
5844
7074
|
init_esm_shims();
|
|
5845
7075
|
|
|
5846
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7076
|
+
// ../../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
|
|
5847
7077
|
init_esm_shims();
|
|
5848
7078
|
var getValue = (node2) => {
|
|
5849
7079
|
switch (node2.type) {
|
|
@@ -5859,7 +7089,7 @@ var getValue = (node2) => {
|
|
|
5859
7089
|
}
|
|
5860
7090
|
};
|
|
5861
7091
|
|
|
5862
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7092
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/ignore.js
|
|
5863
7093
|
init_esm_shims();
|
|
5864
7094
|
var log = debug("eslint-plugin-import-x:utils:ignore");
|
|
5865
7095
|
var cachedSet;
|
|
@@ -5908,7 +7138,7 @@ function hasValidExtension(filepath, context) {
|
|
|
5908
7138
|
return validExtensions(context).has(path16.extname(filepath));
|
|
5909
7139
|
}
|
|
5910
7140
|
|
|
5911
|
-
// ../../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/utils/lazy-value.js
|
|
5912
7142
|
init_esm_shims();
|
|
5913
7143
|
var lazy = (cb) => {
|
|
5914
7144
|
let isCalled = false;
|
|
@@ -5942,10 +7172,10 @@ function defineLazyProperty(object2, propertyName, valueGetter) {
|
|
|
5942
7172
|
return object2;
|
|
5943
7173
|
}
|
|
5944
7174
|
|
|
5945
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7175
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/parse.js
|
|
5946
7176
|
init_esm_shims();
|
|
5947
7177
|
|
|
5948
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7178
|
+
// ../../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
|
|
5949
7179
|
init_esm_shims();
|
|
5950
7180
|
function createModule(filename) {
|
|
5951
7181
|
const mod = new Module(filename);
|
|
@@ -5971,7 +7201,7 @@ function moduleRequire(p, sourceFile) {
|
|
|
5971
7201
|
return cjsRequire(p);
|
|
5972
7202
|
}
|
|
5973
7203
|
|
|
5974
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7204
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/parse.js
|
|
5975
7205
|
function withoutProjectParserOptions(opts) {
|
|
5976
7206
|
const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts;
|
|
5977
7207
|
return rest;
|
|
@@ -6065,16 +7295,16 @@ function getParserOrPath(path23, context) {
|
|
|
6065
7295
|
return null;
|
|
6066
7296
|
}
|
|
6067
7297
|
|
|
6068
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7298
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
|
|
6069
7299
|
init_esm_shims();
|
|
6070
7300
|
|
|
6071
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7301
|
+
// ../../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
|
|
6072
7302
|
init_esm_shims();
|
|
6073
7303
|
|
|
6074
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7304
|
+
// ../../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
|
|
6075
7305
|
init_esm_shims();
|
|
6076
7306
|
|
|
6077
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7307
|
+
// ../../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
|
|
6078
7308
|
init_esm_shims();
|
|
6079
7309
|
function findUp(filename, cwd) {
|
|
6080
7310
|
let dir = path16.resolve(cwd || "");
|
|
@@ -6095,7 +7325,7 @@ function pkgUp(opts) {
|
|
|
6095
7325
|
return findUp("package.json", opts && opts.cwd);
|
|
6096
7326
|
}
|
|
6097
7327
|
|
|
6098
|
-
// ../../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/utils/read-pkg-up.js
|
|
6099
7329
|
init_esm_shims();
|
|
6100
7330
|
function stripBOM(str) {
|
|
6101
7331
|
return str.replace(/^\uFEFF/, "");
|
|
@@ -6115,7 +7345,7 @@ function readPkgUp(opts) {
|
|
|
6115
7345
|
}
|
|
6116
7346
|
}
|
|
6117
7347
|
|
|
6118
|
-
// ../../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/utils/package-path.js
|
|
6119
7349
|
function getContextPackagePath(context) {
|
|
6120
7350
|
return getFilePackagePath(context.physicalFilename);
|
|
6121
7351
|
}
|
|
@@ -6130,7 +7360,7 @@ function getFilePackageName(filename) {
|
|
|
6130
7360
|
return null;
|
|
6131
7361
|
}
|
|
6132
7362
|
|
|
6133
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7363
|
+
// ../../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
|
|
6134
7364
|
function baseModule(name3) {
|
|
6135
7365
|
if (isScoped(name3)) {
|
|
6136
7366
|
const [scope, pkg2] = name3.split("/");
|
|
@@ -6240,17 +7470,17 @@ function importType(name3, context) {
|
|
|
6240
7470
|
return typeTest(name3, context, typeof name3 === "string" ? resolve(name3, context) : null);
|
|
6241
7471
|
}
|
|
6242
7472
|
|
|
6243
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7473
|
+
// ../../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
|
|
6244
7474
|
init_esm_shims();
|
|
6245
7475
|
|
|
6246
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7476
|
+
// ../../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
|
|
6247
7477
|
init_esm_shims();
|
|
6248
7478
|
function pkgDir(cwd) {
|
|
6249
7479
|
const fp = pkgUp({ cwd });
|
|
6250
7480
|
return fp ? path16.dirname(fp) : null;
|
|
6251
7481
|
}
|
|
6252
7482
|
|
|
6253
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7483
|
+
// ../../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
|
|
6254
7484
|
function resolveWithLegacyResolver(resolver, config5, modulePath, sourceFile) {
|
|
6255
7485
|
if (resolver.interfaceVersion === 2) {
|
|
6256
7486
|
return resolver.resolve(modulePath, sourceFile, config5);
|
|
@@ -6370,7 +7600,7 @@ function getBaseDir(sourceFile) {
|
|
|
6370
7600
|
return pkgDir(sourceFile) || process.cwd();
|
|
6371
7601
|
}
|
|
6372
7602
|
|
|
6373
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7603
|
+
// ../../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
|
|
6374
7604
|
init_esm_shims();
|
|
6375
7605
|
var log3 = debug("eslint-plugin-import-x:utils:ModuleCache");
|
|
6376
7606
|
var ModuleCache = class {
|
|
@@ -6407,7 +7637,7 @@ var ModuleCache = class {
|
|
|
6407
7637
|
}
|
|
6408
7638
|
};
|
|
6409
7639
|
|
|
6410
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7640
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
|
|
6411
7641
|
var importMetaUrl2 = import.meta.url;
|
|
6412
7642
|
var _filename = importMetaUrl2 ? fileURLToPath(importMetaUrl2) : __filename$1;
|
|
6413
7643
|
var _dirname = path16.dirname(_filename);
|
|
@@ -6619,7 +7849,7 @@ function importXResolverCompat(resolver, resolverOptions = {}) {
|
|
|
6619
7849
|
};
|
|
6620
7850
|
}
|
|
6621
7851
|
|
|
6622
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7852
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/unambiguous.js
|
|
6623
7853
|
init_esm_shims();
|
|
6624
7854
|
var pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[*={]))|import\(/m;
|
|
6625
7855
|
function isMaybeUnambiguousModule(content) {
|
|
@@ -6630,7 +7860,7 @@ function isUnambiguousModule(ast) {
|
|
|
6630
7860
|
return ast.body && ast.body.some((node2) => unambiguousNodeType.test(node2.type));
|
|
6631
7861
|
}
|
|
6632
7862
|
|
|
6633
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7863
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/utils/visit.js
|
|
6634
7864
|
init_esm_shims();
|
|
6635
7865
|
function visit(node2, keys, visitorSpec) {
|
|
6636
7866
|
if (!node2 || !keys) {
|
|
@@ -6659,7 +7889,7 @@ function visit(node2, keys, visitorSpec) {
|
|
|
6659
7889
|
}
|
|
6660
7890
|
}
|
|
6661
7891
|
|
|
6662
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
7892
|
+
// ../../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
|
|
6663
7893
|
var log4 = debug("eslint-plugin-import-x:ExportMap");
|
|
6664
7894
|
var exportCache = /* @__PURE__ */ new Map();
|
|
6665
7895
|
var declTypes = /* @__PURE__ */ new Set([
|
|
@@ -7345,7 +8575,7 @@ function makeContextCacheKey(context) {
|
|
|
7345
8575
|
return hash;
|
|
7346
8576
|
}
|
|
7347
8577
|
|
|
7348
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8578
|
+
// ../../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
|
|
7349
8579
|
init_esm_shims();
|
|
7350
8580
|
var importDeclaration = (context, node2) => {
|
|
7351
8581
|
if (node2.parent && node2.parent.type === AST_NODE_TYPES.ImportDeclaration) {
|
|
@@ -7355,7 +8585,7 @@ var importDeclaration = (context, node2) => {
|
|
|
7355
8585
|
return ancestors[ancestors.length - 1];
|
|
7356
8586
|
};
|
|
7357
8587
|
|
|
7358
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8588
|
+
// ../../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
|
|
7359
8589
|
init_esm_shims();
|
|
7360
8590
|
function moduleVisitor(visitor, options) {
|
|
7361
8591
|
const ignore2 = options?.ignore;
|
|
@@ -7498,7 +8728,7 @@ function makeOptionsSchema(additionalProperties) {
|
|
|
7498
8728
|
}
|
|
7499
8729
|
makeOptionsSchema();
|
|
7500
8730
|
|
|
7501
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8731
|
+
// ../../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
|
|
7502
8732
|
init_esm_shims();
|
|
7503
8733
|
var NPM = "npm";
|
|
7504
8734
|
var NPM_CLIENTS = /* @__PURE__ */ new Set([
|
|
@@ -7519,7 +8749,7 @@ var getNpmClient = () => {
|
|
|
7519
8749
|
};
|
|
7520
8750
|
var getNpmInstallCommand = (packageName) => `${getNpmClient()} ${npmClient === NPM ? "i" : "add"} ${npmClient === "deno" ? `${NPM}:` : ""}${packageName}`;
|
|
7521
8751
|
|
|
7522
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8752
|
+
// ../../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
|
|
7523
8753
|
init_esm_shims();
|
|
7524
8754
|
var parsePath = (path23) => {
|
|
7525
8755
|
const hashIndex = path23.indexOf("#");
|
|
@@ -7533,7 +8763,7 @@ var parsePath = (path23) => {
|
|
|
7533
8763
|
};
|
|
7534
8764
|
var stringifyPath = ({ pathname, query, hash }) => pathname + query + hash;
|
|
7535
8765
|
|
|
7536
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8766
|
+
// ../../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
|
|
7537
8767
|
init_esm_shims();
|
|
7538
8768
|
function sourceType(context) {
|
|
7539
8769
|
if ("languageOptions" in context && context.languageOptions) {
|
|
@@ -7549,13 +8779,13 @@ function sourceType(context) {
|
|
|
7549
8779
|
}
|
|
7550
8780
|
}
|
|
7551
8781
|
|
|
7552
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8782
|
+
// ../../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
|
|
7553
8783
|
init_esm_shims();
|
|
7554
8784
|
function isStaticRequire(node2) {
|
|
7555
8785
|
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";
|
|
7556
8786
|
}
|
|
7557
8787
|
|
|
7558
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8788
|
+
// ../../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
|
|
7559
8789
|
function isComma(token) {
|
|
7560
8790
|
return token.type === "Punctuator" && token.value === ",";
|
|
7561
8791
|
}
|
|
@@ -7721,7 +8951,7 @@ ${newImports}`)
|
|
|
7721
8951
|
}
|
|
7722
8952
|
});
|
|
7723
8953
|
|
|
7724
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8954
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/default.js
|
|
7725
8955
|
init_esm_shims();
|
|
7726
8956
|
var default_default = createRule2({
|
|
7727
8957
|
name: "default",
|
|
@@ -7766,7 +8996,7 @@ var default_default = createRule2({
|
|
|
7766
8996
|
}
|
|
7767
8997
|
});
|
|
7768
8998
|
|
|
7769
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
8999
|
+
// ../../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
|
|
7770
9000
|
init_esm_shims();
|
|
7771
9001
|
var dynamic_import_chunkname_default = createRule2({
|
|
7772
9002
|
name: "dynamic-import-chunkname",
|
|
@@ -7937,7 +9167,7 @@ var dynamic_import_chunkname_default = createRule2({
|
|
|
7937
9167
|
}
|
|
7938
9168
|
});
|
|
7939
9169
|
|
|
7940
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9170
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/export.js
|
|
7941
9171
|
init_esm_shims();
|
|
7942
9172
|
var rootProgram = "root";
|
|
7943
9173
|
var tsTypePrefix = "type:";
|
|
@@ -8090,7 +9320,7 @@ var export_default = createRule2({
|
|
|
8090
9320
|
}
|
|
8091
9321
|
});
|
|
8092
9322
|
|
|
8093
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9323
|
+
// ../../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
|
|
8094
9324
|
init_esm_shims();
|
|
8095
9325
|
var findLastIndex = (array2, predicate) => {
|
|
8096
9326
|
let i = array2.length - 1;
|
|
@@ -8138,7 +9368,7 @@ var exports_last_default = createRule2({
|
|
|
8138
9368
|
}
|
|
8139
9369
|
});
|
|
8140
9370
|
|
|
8141
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
9371
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
|
|
8142
9372
|
init_esm_shims();
|
|
8143
9373
|
|
|
8144
9374
|
// ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
|
|
@@ -9740,7 +10970,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
9740
10970
|
minimatch.escape = escape;
|
|
9741
10971
|
minimatch.unescape = unescape;
|
|
9742
10972
|
|
|
9743
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
10973
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
|
|
9744
10974
|
var modifierValues = ["always", "ignorePackages", "never"];
|
|
9745
10975
|
var modifierSchema = {
|
|
9746
10976
|
type: "string",
|
|
@@ -10022,7 +11252,7 @@ var extensions_default = createRule2({
|
|
|
10022
11252
|
}
|
|
10023
11253
|
});
|
|
10024
11254
|
|
|
10025
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11255
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/first.js
|
|
10026
11256
|
init_esm_shims();
|
|
10027
11257
|
function getImportValue(node2) {
|
|
10028
11258
|
return node2.type === "ImportDeclaration" ? node2.source.value : "moduleReference" in node2 && "expression" in node2.moduleReference && "value" in node2.moduleReference.expression && node2.moduleReference.expression.value;
|
|
@@ -10157,7 +11387,7 @@ ${nodeSourceCode}`;
|
|
|
10157
11387
|
}
|
|
10158
11388
|
});
|
|
10159
11389
|
|
|
10160
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11390
|
+
// ../../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
|
|
10161
11391
|
init_esm_shims();
|
|
10162
11392
|
function accessorChain(node2) {
|
|
10163
11393
|
const chain = [];
|
|
@@ -10272,7 +11502,7 @@ var group_exports_default = createRule2({
|
|
|
10272
11502
|
}
|
|
10273
11503
|
});
|
|
10274
11504
|
|
|
10275
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11505
|
+
// ../../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
|
|
10276
11506
|
init_esm_shims();
|
|
10277
11507
|
var imports_first_default = createRule2({
|
|
10278
11508
|
...first_default,
|
|
@@ -10297,7 +11527,7 @@ var imports_first_default = createRule2({
|
|
|
10297
11527
|
}
|
|
10298
11528
|
});
|
|
10299
11529
|
|
|
10300
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11530
|
+
// ../../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
|
|
10301
11531
|
init_esm_shims();
|
|
10302
11532
|
var max_dependencies_default = createRule2({
|
|
10303
11533
|
name: "max-dependencies",
|
|
@@ -10350,7 +11580,7 @@ var max_dependencies_default = createRule2({
|
|
|
10350
11580
|
}
|
|
10351
11581
|
});
|
|
10352
11582
|
|
|
10353
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11583
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/named.js
|
|
10354
11584
|
init_esm_shims();
|
|
10355
11585
|
var named_default = createRule2({
|
|
10356
11586
|
name: "named",
|
|
@@ -10476,7 +11706,7 @@ var named_default = createRule2({
|
|
|
10476
11706
|
}
|
|
10477
11707
|
});
|
|
10478
11708
|
|
|
10479
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11709
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/namespace.js
|
|
10480
11710
|
init_esm_shims();
|
|
10481
11711
|
function processBodyStatement(context, namespaces, declaration) {
|
|
10482
11712
|
if (declaration.type !== "ImportDeclaration") {
|
|
@@ -10704,7 +11934,7 @@ var namespace_default = createRule2({
|
|
|
10704
11934
|
}
|
|
10705
11935
|
});
|
|
10706
11936
|
|
|
10707
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
11937
|
+
// ../../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
|
|
10708
11938
|
init_esm_shims();
|
|
10709
11939
|
var log5 = debug("eslint-plugin-import-x:rules:newline-after-import");
|
|
10710
11940
|
function containsNodeOrEqual(outerNode, innerNode) {
|
|
@@ -10906,7 +12136,7 @@ var newline_after_import_default = createRule2({
|
|
|
10906
12136
|
}
|
|
10907
12137
|
});
|
|
10908
12138
|
|
|
10909
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12139
|
+
// ../../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
|
|
10910
12140
|
init_esm_shims();
|
|
10911
12141
|
var no_absolute_path_default = createRule2({
|
|
10912
12142
|
name: "no-absolute-path",
|
|
@@ -10944,7 +12174,7 @@ var no_absolute_path_default = createRule2({
|
|
|
10944
12174
|
}
|
|
10945
12175
|
});
|
|
10946
12176
|
|
|
10947
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12177
|
+
// ../../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
|
|
10948
12178
|
init_esm_shims();
|
|
10949
12179
|
var no_amd_default = createRule2({
|
|
10950
12180
|
name: "no-amd",
|
|
@@ -10991,7 +12221,7 @@ var no_amd_default = createRule2({
|
|
|
10991
12221
|
}
|
|
10992
12222
|
});
|
|
10993
12223
|
|
|
10994
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12224
|
+
// ../../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
|
|
10995
12225
|
init_esm_shims();
|
|
10996
12226
|
var { hasOwnProperty } = Object.prototype;
|
|
10997
12227
|
var hasOwn = (object2, key) => hasOwnProperty.call(object2, key);
|
|
@@ -11125,7 +12355,7 @@ var no_anonymous_default_export_default = createRule2({
|
|
|
11125
12355
|
}
|
|
11126
12356
|
});
|
|
11127
12357
|
|
|
11128
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12358
|
+
// ../../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
|
|
11129
12359
|
init_esm_shims();
|
|
11130
12360
|
function normalizeLegacyOptions(options) {
|
|
11131
12361
|
if (options.includes("allow-primitive-modules")) {
|
|
@@ -11248,7 +12478,7 @@ var no_commonjs_default = createRule2({
|
|
|
11248
12478
|
}
|
|
11249
12479
|
});
|
|
11250
12480
|
|
|
11251
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12481
|
+
// ../../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
|
|
11252
12482
|
init_esm_shims();
|
|
11253
12483
|
var traversed = /* @__PURE__ */ new Set();
|
|
11254
12484
|
var no_cycle_default = createRule2({
|
|
@@ -11377,7 +12607,7 @@ function routeString(route) {
|
|
|
11377
12607
|
return route.map((s) => `${s.value}:${s.loc.start.line}`).join("=>");
|
|
11378
12608
|
}
|
|
11379
12609
|
|
|
11380
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12610
|
+
// ../../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
|
|
11381
12611
|
init_esm_shims();
|
|
11382
12612
|
var no_default_export_default = createRule2({
|
|
11383
12613
|
name: "no-default-export",
|
|
@@ -11433,7 +12663,7 @@ var no_default_export_default = createRule2({
|
|
|
11433
12663
|
}
|
|
11434
12664
|
});
|
|
11435
12665
|
|
|
11436
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12666
|
+
// ../../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
|
|
11437
12667
|
init_esm_shims();
|
|
11438
12668
|
function message(deprecation) {
|
|
11439
12669
|
if (deprecation.description) {
|
|
@@ -11591,7 +12821,7 @@ var no_deprecated_default = createRule2({
|
|
|
11591
12821
|
}
|
|
11592
12822
|
});
|
|
11593
12823
|
|
|
11594
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
12824
|
+
// ../../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
|
|
11595
12825
|
init_esm_shims();
|
|
11596
12826
|
var isTypeScriptVersionSupportPreferInline = lazy(() => {
|
|
11597
12827
|
let typescriptPkg;
|
|
@@ -11864,7 +13094,7 @@ var no_duplicates_default = createRule2({
|
|
|
11864
13094
|
}
|
|
11865
13095
|
});
|
|
11866
13096
|
|
|
11867
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13097
|
+
// ../../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
|
|
11868
13098
|
init_esm_shims();
|
|
11869
13099
|
function isRequire(node2) {
|
|
11870
13100
|
return node2.callee?.type === "Identifier" && node2.callee.name === "require" && node2.arguments.length > 0;
|
|
@@ -11933,7 +13163,7 @@ var no_dynamic_require_default = createRule2({
|
|
|
11933
13163
|
}
|
|
11934
13164
|
});
|
|
11935
13165
|
|
|
11936
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13166
|
+
// ../../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
|
|
11937
13167
|
init_esm_shims();
|
|
11938
13168
|
function getEmptyBlockRange(tokens, index) {
|
|
11939
13169
|
const token = tokens[index];
|
|
@@ -12031,7 +13261,7 @@ var no_empty_named_blocks_default = createRule2({
|
|
|
12031
13261
|
}
|
|
12032
13262
|
});
|
|
12033
13263
|
|
|
12034
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13264
|
+
// ../../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
|
|
12035
13265
|
init_esm_shims();
|
|
12036
13266
|
var depFieldCache = /* @__PURE__ */ new Map();
|
|
12037
13267
|
var minimatch2 = minimatch;
|
|
@@ -12277,7 +13507,7 @@ var no_extraneous_dependencies_default = createRule2({
|
|
|
12277
13507
|
}
|
|
12278
13508
|
});
|
|
12279
13509
|
|
|
12280
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13510
|
+
// ../../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
|
|
12281
13511
|
init_esm_shims();
|
|
12282
13512
|
function getEntryPoint(context) {
|
|
12283
13513
|
const pkgPath = pkgUp({
|
|
@@ -12359,7 +13589,7 @@ var no_import_module_exports_default = createRule2({
|
|
|
12359
13589
|
}
|
|
12360
13590
|
});
|
|
12361
13591
|
|
|
12362
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13592
|
+
// ../../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
|
|
12363
13593
|
init_esm_shims();
|
|
12364
13594
|
function normalizeSep(somePath) {
|
|
12365
13595
|
return somePath.split("\\").join("/");
|
|
@@ -12476,7 +13706,7 @@ var no_internal_modules_default = createRule2({
|
|
|
12476
13706
|
}
|
|
12477
13707
|
});
|
|
12478
13708
|
|
|
12479
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13709
|
+
// ../../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
|
|
12480
13710
|
init_esm_shims();
|
|
12481
13711
|
var no_mutable_exports_default = createRule2({
|
|
12482
13712
|
name: "no-mutable-exports",
|
|
@@ -12536,7 +13766,7 @@ var no_mutable_exports_default = createRule2({
|
|
|
12536
13766
|
}
|
|
12537
13767
|
});
|
|
12538
13768
|
|
|
12539
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13769
|
+
// ../../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
|
|
12540
13770
|
init_esm_shims();
|
|
12541
13771
|
var no_named_as_default_member_default = createRule2({
|
|
12542
13772
|
name: "no-named-as-default-member",
|
|
@@ -12623,7 +13853,7 @@ var no_named_as_default_member_default = createRule2({
|
|
|
12623
13853
|
}
|
|
12624
13854
|
});
|
|
12625
13855
|
|
|
12626
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13856
|
+
// ../../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
|
|
12627
13857
|
init_esm_shims();
|
|
12628
13858
|
var no_named_as_default_default = createRule2({
|
|
12629
13859
|
name: "no-named-as-default",
|
|
@@ -12679,7 +13909,7 @@ var no_named_as_default_default = createRule2({
|
|
|
12679
13909
|
}
|
|
12680
13910
|
});
|
|
12681
13911
|
|
|
12682
|
-
// ../../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-named-default.js
|
|
12683
13913
|
init_esm_shims();
|
|
12684
13914
|
var no_named_default_default = createRule2({
|
|
12685
13915
|
name: "no-named-default",
|
|
@@ -12717,7 +13947,7 @@ var no_named_default_default = createRule2({
|
|
|
12717
13947
|
}
|
|
12718
13948
|
});
|
|
12719
13949
|
|
|
12720
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13950
|
+
// ../../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
|
|
12721
13951
|
init_esm_shims();
|
|
12722
13952
|
var no_named_export_default = createRule2({
|
|
12723
13953
|
name: "no-named-export",
|
|
@@ -12754,7 +13984,7 @@ var no_named_export_default = createRule2({
|
|
|
12754
13984
|
}
|
|
12755
13985
|
});
|
|
12756
13986
|
|
|
12757
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
13987
|
+
// ../../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
|
|
12758
13988
|
init_esm_shims();
|
|
12759
13989
|
var no_namespace_default = createRule2({
|
|
12760
13990
|
name: "no-namespace",
|
|
@@ -12877,7 +14107,7 @@ function generateLocalNames(names, nameConflicts, namespaceName) {
|
|
|
12877
14107
|
return localNames;
|
|
12878
14108
|
}
|
|
12879
14109
|
|
|
12880
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14110
|
+
// ../../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
|
|
12881
14111
|
init_esm_shims();
|
|
12882
14112
|
var no_nodejs_modules_default = createRule2({
|
|
12883
14113
|
name: "no-nodejs-modules",
|
|
@@ -12925,7 +14155,7 @@ var no_nodejs_modules_default = createRule2({
|
|
|
12925
14155
|
}
|
|
12926
14156
|
});
|
|
12927
14157
|
|
|
12928
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14158
|
+
// ../../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
|
|
12929
14159
|
init_esm_shims();
|
|
12930
14160
|
function toPosixPath(filePath) {
|
|
12931
14161
|
return filePath.replaceAll("\\", "/");
|
|
@@ -12985,7 +14215,7 @@ var no_relative_packages_default = createRule2({
|
|
|
12985
14215
|
}
|
|
12986
14216
|
});
|
|
12987
14217
|
|
|
12988
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14218
|
+
// ../../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
|
|
12989
14219
|
init_esm_shims();
|
|
12990
14220
|
var no_relative_parent_imports_default = createRule2({
|
|
12991
14221
|
name: "no-relative-parent-imports",
|
|
@@ -13030,7 +14260,7 @@ var no_relative_parent_imports_default = createRule2({
|
|
|
13030
14260
|
}
|
|
13031
14261
|
});
|
|
13032
14262
|
|
|
13033
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14263
|
+
// ../../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
|
|
13034
14264
|
init_esm_shims();
|
|
13035
14265
|
var no_rename_default_default = createRule2({
|
|
13036
14266
|
name: "no-rename-default",
|
|
@@ -13270,7 +14500,7 @@ function getDefaultExportNode(exportMap) {
|
|
|
13270
14500
|
}
|
|
13271
14501
|
}
|
|
13272
14502
|
|
|
13273
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14503
|
+
// ../../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
|
|
13274
14504
|
init_esm_shims();
|
|
13275
14505
|
var containsPath = (filepath, target) => {
|
|
13276
14506
|
const relative2 = path16.relative(target, filepath);
|
|
@@ -13471,7 +14701,7 @@ var no_restricted_paths_default = createRule2({
|
|
|
13471
14701
|
}
|
|
13472
14702
|
});
|
|
13473
14703
|
|
|
13474
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14704
|
+
// ../../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
|
|
13475
14705
|
init_esm_shims();
|
|
13476
14706
|
function isImportingSelf(context, node2, requireName) {
|
|
13477
14707
|
const filename = context.physicalFilename;
|
|
@@ -13504,7 +14734,7 @@ var no_self_import_default = createRule2({
|
|
|
13504
14734
|
}
|
|
13505
14735
|
});
|
|
13506
14736
|
|
|
13507
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14737
|
+
// ../../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
|
|
13508
14738
|
init_esm_shims();
|
|
13509
14739
|
function testIsAllow(globs, context, source) {
|
|
13510
14740
|
if (!Array.isArray(globs)) {
|
|
@@ -13574,7 +14804,7 @@ var no_unassigned_import_default = createRule2({
|
|
|
13574
14804
|
}
|
|
13575
14805
|
});
|
|
13576
14806
|
|
|
13577
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14807
|
+
// ../../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
|
|
13578
14808
|
init_esm_shims();
|
|
13579
14809
|
var no_unresolved_default = createRule2({
|
|
13580
14810
|
name: "no-unresolved",
|
|
@@ -13629,7 +14859,7 @@ var no_unresolved_default = createRule2({
|
|
|
13629
14859
|
}
|
|
13630
14860
|
});
|
|
13631
14861
|
|
|
13632
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
14862
|
+
// ../../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
|
|
13633
14863
|
init_esm_shims();
|
|
13634
14864
|
function isESLint9UnsupportedApi(input) {
|
|
13635
14865
|
return typeof input === "object" && input !== null && "shouldUseFlatConfig" in input && "FileEnumerator" in eslintUnsupportedApi;
|
|
@@ -14365,7 +15595,7 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
|
|
|
14365
15595
|
}
|
|
14366
15596
|
});
|
|
14367
15597
|
|
|
14368
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15598
|
+
// ../../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
|
|
14369
15599
|
init_esm_shims();
|
|
14370
15600
|
function toRelativePath(relativePath) {
|
|
14371
15601
|
const stripped = relativePath.replaceAll(/\/$/g, "");
|
|
@@ -14462,7 +15692,7 @@ var no_useless_path_segments_default = createRule2({
|
|
|
14462
15692
|
}
|
|
14463
15693
|
});
|
|
14464
15694
|
|
|
14465
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15695
|
+
// ../../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
|
|
14466
15696
|
init_esm_shims();
|
|
14467
15697
|
var no_webpack_loader_syntax_default = createRule2({
|
|
14468
15698
|
name: "no-webpack-loader-syntax",
|
|
@@ -14493,7 +15723,7 @@ var no_webpack_loader_syntax_default = createRule2({
|
|
|
14493
15723
|
}
|
|
14494
15724
|
});
|
|
14495
15725
|
|
|
14496
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
15726
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/order.js
|
|
14497
15727
|
init_esm_shims();
|
|
14498
15728
|
var log6 = debug("eslint-plugin-import-x:rules:order");
|
|
14499
15729
|
var groupBy = (array2, grouper) => array2.reduce((acc, curr, index) => {
|
|
@@ -15538,7 +16768,7 @@ var order_default = createRule2({
|
|
|
15538
16768
|
}
|
|
15539
16769
|
});
|
|
15540
16770
|
|
|
15541
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16771
|
+
// ../../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
|
|
15542
16772
|
init_esm_shims();
|
|
15543
16773
|
var prefer_default_export_default = createRule2({
|
|
15544
16774
|
name: "prefer-default-export",
|
|
@@ -15644,7 +16874,7 @@ var prefer_default_export_default = createRule2({
|
|
|
15644
16874
|
}
|
|
15645
16875
|
});
|
|
15646
16876
|
|
|
15647
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16877
|
+
// ../../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
|
|
15648
16878
|
init_esm_shims();
|
|
15649
16879
|
var prefer_namespace_import_default = createRule2({
|
|
15650
16880
|
name: "prefer-namespace-import",
|
|
@@ -15726,7 +16956,7 @@ function toRegExp(string3) {
|
|
|
15726
16956
|
return { test: (s) => s === string3 };
|
|
15727
16957
|
}
|
|
15728
16958
|
|
|
15729
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16959
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/rules/unambiguous.js
|
|
15730
16960
|
init_esm_shims();
|
|
15731
16961
|
var unambiguous_default = createRule2({
|
|
15732
16962
|
name: "unambiguous",
|
|
@@ -15759,7 +16989,7 @@ var unambiguous_default = createRule2({
|
|
|
15759
16989
|
}
|
|
15760
16990
|
});
|
|
15761
16991
|
|
|
15762
|
-
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=
|
|
16992
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_edb58aa0c4b578b161dc981f01ae0870/node_modules/eslint-plugin-import-x/lib/index.js
|
|
15763
16993
|
var rules2 = {
|
|
15764
16994
|
"no-unresolved": no_unresolved_default,
|
|
15765
16995
|
named: named_default,
|
|
@@ -17364,7 +18594,7 @@ init_esm_shims();
|
|
|
17364
18594
|
// ../eslint-plugin-pnpm/src/plugin.ts
|
|
17365
18595
|
init_esm_shims();
|
|
17366
18596
|
|
|
17367
|
-
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=
|
|
18597
|
+
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_f3795df961f0ced0a2358dd7bcde797b/node_modules/eslint-plugin-pnpm/dist/index.mjs
|
|
17368
18598
|
init_esm_shims();
|
|
17369
18599
|
var name2 = "eslint-plugin-pnpm";
|
|
17370
18600
|
var version3 = "0.3.0";
|
|
@@ -18447,19 +19677,15 @@ async function react(options = {}) {
|
|
|
18447
19677
|
|
|
18448
19678
|
// src/configs/react-native.ts
|
|
18449
19679
|
init_esm_shims();
|
|
19680
|
+
var import_eslint_plugin_react_native = __toESM(require_eslint_plugin_react_native(), 1);
|
|
18450
19681
|
async function reactNative(options = {}) {
|
|
18451
19682
|
const { overrides = {} } = options;
|
|
18452
|
-
await ensurePackages(["eslint-plugin-react-native"]);
|
|
18453
|
-
const reactNative2 = await interopDefault(
|
|
18454
|
-
// eslint-disable-next-line @nx/enforce-module-boundaries
|
|
18455
|
-
import('eslint-plugin-react-native')
|
|
18456
|
-
);
|
|
18457
19683
|
return [
|
|
18458
19684
|
{
|
|
18459
19685
|
name: "storm/react-native/rules",
|
|
18460
|
-
plugins: { "react-native":
|
|
19686
|
+
plugins: { "react-native": import_eslint_plugin_react_native.default },
|
|
18461
19687
|
rules: {
|
|
18462
|
-
...
|
|
19688
|
+
...import_eslint_plugin_react_native.default.configs.all.rules,
|
|
18463
19689
|
...overrides
|
|
18464
19690
|
}
|
|
18465
19691
|
}
|
|
@@ -18805,10 +20031,10 @@ async function storybook(options = {}) {
|
|
|
18805
20031
|
|
|
18806
20032
|
// src/configs/test.ts
|
|
18807
20033
|
init_esm_shims();
|
|
18808
|
-
var
|
|
20034
|
+
var plugin6;
|
|
18809
20035
|
async function test(options = {}) {
|
|
18810
20036
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
18811
|
-
|
|
20037
|
+
plugin6 = plugin6 || {
|
|
18812
20038
|
...default4,
|
|
18813
20039
|
rules: {
|
|
18814
20040
|
...default4.rules,
|
|
@@ -18820,7 +20046,7 @@ async function test(options = {}) {
|
|
|
18820
20046
|
{
|
|
18821
20047
|
name: "storm/test/setup",
|
|
18822
20048
|
plugins: {
|
|
18823
|
-
test:
|
|
20049
|
+
test: plugin6
|
|
18824
20050
|
}
|
|
18825
20051
|
},
|
|
18826
20052
|
{
|