@eslint-react/jsx 1.5.15-next.0 → 1.5.15-next.2
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/index.js +45 -56
- package/dist/index.mjs +45 -56
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ function isJSXElementOfBuiltinComponent(node) {
|
|
|
40
40
|
return node.openingElement.name.type === ast.NodeType.JSXIdentifier && node.openingElement.name.name.toLowerCase() === node.openingElement.name.name && /^[a-z]/u.test(node.openingElement.name.name);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
43
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Function.js
|
|
44
44
|
var Function_exports = {};
|
|
45
45
|
__export(Function_exports, {
|
|
46
46
|
SK: () => SK,
|
|
@@ -215,7 +215,7 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
215
215
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
216
216
|
var SK = (_, b) => b;
|
|
217
217
|
|
|
218
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
218
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Array.js
|
|
219
219
|
var Array_exports = {};
|
|
220
220
|
__export(Array_exports, {
|
|
221
221
|
Do: () => Do2,
|
|
@@ -346,7 +346,7 @@ __export(Array_exports, {
|
|
|
346
346
|
zipWith: () => zipWith2
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
349
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Equivalence.js
|
|
350
350
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
351
351
|
var array = (item) => make((self, that) => {
|
|
352
352
|
if (self.length !== that.length) {
|
|
@@ -361,7 +361,7 @@ var array = (item) => make((self, that) => {
|
|
|
361
361
|
return true;
|
|
362
362
|
});
|
|
363
363
|
|
|
364
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
364
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/doNotation.js
|
|
365
365
|
var let_ = (map3) => dual(3, (self, name, f) => map3(self, (a) => Object.assign({}, a, {
|
|
366
366
|
[name]: f(a)
|
|
367
367
|
})));
|
|
@@ -372,11 +372,11 @@ var bind = (map3, flatMap3) => dual(3, (self, name, f) => flatMap3(self, (a) =>
|
|
|
372
372
|
[name]: b
|
|
373
373
|
}))));
|
|
374
374
|
|
|
375
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
376
|
-
var moduleVersion = "3.2.
|
|
375
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/version.js
|
|
376
|
+
var moduleVersion = "3.2.8";
|
|
377
377
|
var getCurrentVersion = () => moduleVersion;
|
|
378
378
|
|
|
379
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
379
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/GlobalValue.js
|
|
380
380
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
381
381
|
if (!(globalStoreId in globalThis)) {
|
|
382
382
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -389,7 +389,7 @@ var globalValue = (id, compute) => {
|
|
|
389
389
|
return globalStore.get(id);
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
392
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Predicate.js
|
|
393
393
|
var Predicate_exports = {};
|
|
394
394
|
__export(Predicate_exports, {
|
|
395
395
|
all: () => all,
|
|
@@ -526,10 +526,10 @@ var some = (collection) => (a) => {
|
|
|
526
526
|
return false;
|
|
527
527
|
};
|
|
528
528
|
|
|
529
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
529
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/errors.js
|
|
530
530
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
531
531
|
|
|
532
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
532
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Utils.js
|
|
533
533
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
534
534
|
var isGenKind = (u) => isObject(u) && GenKindTypeId in u;
|
|
535
535
|
var GenKindImpl = class {
|
|
@@ -773,7 +773,7 @@ var structuralRegionState = /* @__PURE__ */ globalValue("effect/Utils/isStructur
|
|
|
773
773
|
tester: void 0
|
|
774
774
|
}));
|
|
775
775
|
|
|
776
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
776
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Hash.js
|
|
777
777
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
778
778
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
779
779
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -798,8 +798,9 @@ var hash = (self) => {
|
|
|
798
798
|
case "object": {
|
|
799
799
|
if (self === null) {
|
|
800
800
|
return string("null");
|
|
801
|
-
}
|
|
802
|
-
|
|
801
|
+
} else if (self instanceof Date) {
|
|
802
|
+
return hash(self.toISOString());
|
|
803
|
+
} else if (isHash(self)) {
|
|
803
804
|
return self[symbol]();
|
|
804
805
|
} else {
|
|
805
806
|
return random(self);
|
|
@@ -862,7 +863,7 @@ var cached = function() {
|
|
|
862
863
|
return hash2;
|
|
863
864
|
};
|
|
864
865
|
|
|
865
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
866
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Equal.js
|
|
866
867
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
867
868
|
function equals() {
|
|
868
869
|
if (arguments.length === 1) {
|
|
@@ -886,6 +887,8 @@ function compareBoth(self, that) {
|
|
|
886
887
|
} else {
|
|
887
888
|
return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false;
|
|
888
889
|
}
|
|
890
|
+
} else if (self instanceof Date && that instanceof Date) {
|
|
891
|
+
return self.toISOString() === that.toISOString();
|
|
889
892
|
}
|
|
890
893
|
}
|
|
891
894
|
if (structuralRegionState.enabled) {
|
|
@@ -912,7 +915,7 @@ function compareBoth(self, that) {
|
|
|
912
915
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
913
916
|
var equivalence = () => equals;
|
|
914
917
|
|
|
915
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
918
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Inspectable.js
|
|
916
919
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
917
920
|
var toJSON = (x) => {
|
|
918
921
|
if (hasProperty(x, "toJSON") && isFunction2(x["toJSON"]) && x["toJSON"].length === 0) {
|
|
@@ -924,7 +927,7 @@ var toJSON = (x) => {
|
|
|
924
927
|
};
|
|
925
928
|
var format = (x) => JSON.stringify(x, null, 2);
|
|
926
929
|
|
|
927
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
930
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Pipeable.js
|
|
928
931
|
var pipeArguments = (self, args) => {
|
|
929
932
|
switch (args.length) {
|
|
930
933
|
case 1:
|
|
@@ -955,7 +958,7 @@ var pipeArguments = (self, args) => {
|
|
|
955
958
|
}
|
|
956
959
|
};
|
|
957
960
|
|
|
958
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
961
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/effectable.js
|
|
959
962
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
960
963
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
961
964
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -1016,7 +1019,7 @@ var EffectPrototype = {
|
|
|
1016
1019
|
}
|
|
1017
1020
|
};
|
|
1018
1021
|
|
|
1019
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1022
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/option.js
|
|
1020
1023
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
1021
1024
|
var CommonProto = {
|
|
1022
1025
|
...EffectPrototype,
|
|
@@ -1074,7 +1077,7 @@ var some2 = (value) => {
|
|
|
1074
1077
|
return a;
|
|
1075
1078
|
};
|
|
1076
1079
|
|
|
1077
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1080
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/either.js
|
|
1078
1081
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
1079
1082
|
var CommonProto2 = {
|
|
1080
1083
|
...EffectPrototype,
|
|
@@ -1138,14 +1141,14 @@ var right = (right2) => {
|
|
|
1138
1141
|
var getLeft = (self) => isRight(self) ? none : some2(self.left);
|
|
1139
1142
|
var getRight = (self) => isLeft(self) ? none : some2(self.right);
|
|
1140
1143
|
|
|
1141
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1144
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Either.js
|
|
1142
1145
|
var isLeft2 = isLeft;
|
|
1143
1146
|
var isRight2 = isRight;
|
|
1144
1147
|
|
|
1145
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1148
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/array.js
|
|
1146
1149
|
var isNonEmptyArray = (self) => self.length > 0;
|
|
1147
1150
|
|
|
1148
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1151
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Option.js
|
|
1149
1152
|
var Option_exports = {};
|
|
1150
1153
|
__export(Option_exports, {
|
|
1151
1154
|
Do: () => Do,
|
|
@@ -1207,7 +1210,7 @@ __export(Option_exports, {
|
|
|
1207
1210
|
zipWith: () => zipWith
|
|
1208
1211
|
});
|
|
1209
1212
|
|
|
1210
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1213
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Order.js
|
|
1211
1214
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
1212
1215
|
var number2 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
1213
1216
|
var combineMany = /* @__PURE__ */ dual(2, (self, collection) => make2((a1, a2) => {
|
|
@@ -1241,7 +1244,7 @@ var array2 = (O) => make2((self, that) => {
|
|
|
1241
1244
|
var min = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
|
|
1242
1245
|
var max = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
|
|
1243
1246
|
|
|
1244
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1247
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Option.js
|
|
1245
1248
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
1246
1249
|
var none2 = () => none;
|
|
1247
1250
|
var some3 = some2;
|
|
@@ -1409,10 +1412,10 @@ var gen = (f) => {
|
|
|
1409
1412
|
}
|
|
1410
1413
|
};
|
|
1411
1414
|
|
|
1412
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1415
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Tuple.js
|
|
1413
1416
|
var make3 = (...elements) => elements;
|
|
1414
1417
|
|
|
1415
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1418
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Iterable.js
|
|
1416
1419
|
var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1417
1420
|
let i = 0;
|
|
1418
1421
|
for (const a of self) {
|
|
@@ -1431,7 +1434,7 @@ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
1431
1434
|
return none2();
|
|
1432
1435
|
});
|
|
1433
1436
|
|
|
1434
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1437
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Record.js
|
|
1435
1438
|
var collect = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1436
1439
|
const out = [];
|
|
1437
1440
|
for (const key of keys(self)) {
|
|
@@ -1442,7 +1445,7 @@ var collect = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
1442
1445
|
var toEntries = /* @__PURE__ */ collect((key, value) => [key, value]);
|
|
1443
1446
|
var keys = (self) => Object.keys(self);
|
|
1444
1447
|
|
|
1445
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1448
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Array.js
|
|
1446
1449
|
var make4 = (...elements) => elements;
|
|
1447
1450
|
var allocate = (n) => new Array(n);
|
|
1448
1451
|
var makeBy = (n, f) => {
|
|
@@ -2015,12 +2018,9 @@ function getPropValue(attribute, context) {
|
|
|
2015
2018
|
const initialScope = context.sourceCode.getScope(attribute);
|
|
2016
2019
|
if (attribute.type === ast.NodeType.JSXAttribute && "value" in attribute) {
|
|
2017
2020
|
const { value } = attribute;
|
|
2018
|
-
if (value === null)
|
|
2019
|
-
|
|
2020
|
-
if (value.type === ast.NodeType.
|
|
2021
|
-
return Option_exports.some(getStaticValue(value, initialScope));
|
|
2022
|
-
if (value.type === ast.NodeType.JSXExpressionContainer)
|
|
2023
|
-
return Option_exports.some(getStaticValue(value.expression, initialScope));
|
|
2021
|
+
if (value === null) return Option_exports.none();
|
|
2022
|
+
if (value.type === ast.NodeType.Literal) return Option_exports.some(getStaticValue(value, initialScope));
|
|
2023
|
+
if (value.type === ast.NodeType.JSXExpressionContainer) return Option_exports.some(getStaticValue(value.expression, initialScope));
|
|
2024
2024
|
return Option_exports.none();
|
|
2025
2025
|
}
|
|
2026
2026
|
const { argument } = attribute;
|
|
@@ -2039,13 +2039,10 @@ function findPropInProperties(properties, context, initialScope, seenProps = [])
|
|
|
2039
2039
|
_var.findVariable(name, initialScope),
|
|
2040
2040
|
_var.getVariableInit(0)
|
|
2041
2041
|
);
|
|
2042
|
-
if (Option_exports.isNone(maybeInit))
|
|
2043
|
-
return false;
|
|
2042
|
+
if (Option_exports.isNone(maybeInit)) return false;
|
|
2044
2043
|
const init2 = maybeInit.value;
|
|
2045
|
-
if (init2.type !== ast.NodeType.ObjectExpression)
|
|
2046
|
-
|
|
2047
|
-
if (seenProps.includes(name))
|
|
2048
|
-
return false;
|
|
2044
|
+
if (init2.type !== ast.NodeType.ObjectExpression) return false;
|
|
2045
|
+
if (seenProps.includes(name)) return false;
|
|
2049
2046
|
return Option_exports.isSome(
|
|
2050
2047
|
findPropInProperties(init2.properties, context, initialScope, [...seenProps, name])(propName)
|
|
2051
2048
|
);
|
|
@@ -2072,11 +2069,9 @@ function findPropInAttributes(attributes, context, initialScope) {
|
|
|
2072
2069
|
_var.findVariable(name, initialScope),
|
|
2073
2070
|
_var.getVariableInit(0)
|
|
2074
2071
|
);
|
|
2075
|
-
if (Option_exports.isNone(maybeInit))
|
|
2076
|
-
return false;
|
|
2072
|
+
if (Option_exports.isNone(maybeInit)) return false;
|
|
2077
2073
|
const init2 = maybeInit.value;
|
|
2078
|
-
if (!("properties" in init2))
|
|
2079
|
-
return false;
|
|
2074
|
+
if (!("properties" in init2)) return false;
|
|
2080
2075
|
return Option_exports.isSome(findPropInProperties(init2.properties, context, initialScope)(propName));
|
|
2081
2076
|
}).when(ast.is(ast.NodeType.ObjectExpression), (argument) => {
|
|
2082
2077
|
return Option_exports.isSome(findPropInProperties(argument.properties, context, initialScope)(propName));
|
|
@@ -2110,8 +2105,7 @@ function traverseUpProp(node, predicate = Function_exports.constTrue) {
|
|
|
2110
2105
|
|
|
2111
2106
|
// src/prop/misc.ts
|
|
2112
2107
|
function isInsidePropValue(node) {
|
|
2113
|
-
if (ast.isStringLiteral(node))
|
|
2114
|
-
return node.parent.type === ast.NodeType.JSXAttribute;
|
|
2108
|
+
if (ast.isStringLiteral(node)) return node.parent.type === ast.NodeType.JSXAttribute;
|
|
2115
2109
|
return Option_exports.isSome(traverseUpProp(node, (n) => n.value?.type === ast.NodeType.JSXExpressionContainer));
|
|
2116
2110
|
}
|
|
2117
2111
|
var isLiteral = ast.isOneOf([ast.NodeType.Literal, ast.NodeType.JSXText]);
|
|
@@ -2138,13 +2132,11 @@ var JSXValueHint = {
|
|
|
2138
2132
|
};
|
|
2139
2133
|
var DEFAULT_JSX_VALUE_HINT = JSXValueHint.SkipUndefinedLiteral | JSXValueHint.SkipBooleanLiteral;
|
|
2140
2134
|
function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
|
|
2141
|
-
if (!node)
|
|
2142
|
-
return false;
|
|
2135
|
+
if (!node) return false;
|
|
2143
2136
|
return tsPattern.match(node).with({ type: ast.NodeType.JSXElement }, Function_exports.constTrue).with({ type: ast.NodeType.JSXFragment }, Function_exports.constTrue).with({ type: ast.NodeType.JSXMemberExpression }, Function_exports.constTrue).with({ type: ast.NodeType.JSXNamespacedName }, Function_exports.constTrue).with({ type: ast.NodeType.Literal }, (node2) => {
|
|
2144
2137
|
return tsPattern.match(node2.value).with(null, () => !(hint & JSXValueHint.SkipNullLiteral)).with(tsPattern.P.boolean, () => !(hint & JSXValueHint.SkipBooleanLiteral)).with(tsPattern.P.string, () => !(hint & JSXValueHint.SkipStringLiteral)).with(tsPattern.P.number, () => !(hint & JSXValueHint.SkipNumberLiteral)).otherwise(Function_exports.constFalse);
|
|
2145
2138
|
}).with({ type: ast.NodeType.TemplateLiteral }, () => !(hint & JSXValueHint.SkipStringLiteral)).with({ type: ast.NodeType.ArrayExpression }, (node2) => {
|
|
2146
|
-
if (hint & JSXValueHint.StrictArray)
|
|
2147
|
-
return node2.elements.every((n) => isJSXValue(n, context, hint));
|
|
2139
|
+
if (hint & JSXValueHint.StrictArray) return node2.elements.every((n) => isJSXValue(n, context, hint));
|
|
2148
2140
|
return node2.elements.some((n) => isJSXValue(n, context, hint));
|
|
2149
2141
|
}).with({ type: ast.NodeType.ConditionalExpression }, (node2) => {
|
|
2150
2142
|
function leftHasJSX(node3) {
|
|
@@ -2169,15 +2161,12 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
|
|
|
2169
2161
|
const exp = node2.expressions.at(-1);
|
|
2170
2162
|
return isJSXValue(exp, context, hint);
|
|
2171
2163
|
}).with({ type: ast.NodeType.CallExpression }, (node2) => {
|
|
2172
|
-
if (hint & JSXValueHint.SkipCreateElement)
|
|
2173
|
-
return false;
|
|
2164
|
+
if (hint & JSXValueHint.SkipCreateElement) return false;
|
|
2174
2165
|
return tsPattern.match(node2.callee).with({ type: ast.NodeType.Identifier, name: "createElement" }, Function_exports.constTrue).with({ type: ast.NodeType.MemberExpression, property: { name: "createElement" } }, Function_exports.constTrue).otherwise(Function_exports.constFalse);
|
|
2175
2166
|
}).with({ type: ast.NodeType.Identifier }, (node2) => {
|
|
2176
2167
|
const { name } = node2;
|
|
2177
|
-
if (name === "undefined")
|
|
2178
|
-
|
|
2179
|
-
if (ast.isJSXTagNameExpression(node2))
|
|
2180
|
-
return true;
|
|
2168
|
+
if (name === "undefined") return !(hint & JSXValueHint.SkipUndefinedLiteral);
|
|
2169
|
+
if (ast.isJSXTagNameExpression(node2)) return true;
|
|
2181
2170
|
const initialScope = context.sourceCode.getScope(node2);
|
|
2182
2171
|
const maybeVariable = _var.findVariable(name, initialScope);
|
|
2183
2172
|
return Function_exports.pipe(
|
package/dist/index.mjs
CHANGED
|
@@ -38,7 +38,7 @@ function isJSXElementOfBuiltinComponent(node) {
|
|
|
38
38
|
return node.openingElement.name.type === NodeType.JSXIdentifier && node.openingElement.name.name.toLowerCase() === node.openingElement.name.name && /^[a-z]/u.test(node.openingElement.name.name);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
41
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Function.js
|
|
42
42
|
var Function_exports = {};
|
|
43
43
|
__export(Function_exports, {
|
|
44
44
|
SK: () => SK,
|
|
@@ -213,7 +213,7 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
213
213
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
214
214
|
var SK = (_, b) => b;
|
|
215
215
|
|
|
216
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
216
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Array.js
|
|
217
217
|
var Array_exports = {};
|
|
218
218
|
__export(Array_exports, {
|
|
219
219
|
Do: () => Do2,
|
|
@@ -344,7 +344,7 @@ __export(Array_exports, {
|
|
|
344
344
|
zipWith: () => zipWith2
|
|
345
345
|
});
|
|
346
346
|
|
|
347
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
347
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Equivalence.js
|
|
348
348
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
349
349
|
var array = (item) => make((self, that) => {
|
|
350
350
|
if (self.length !== that.length) {
|
|
@@ -359,7 +359,7 @@ var array = (item) => make((self, that) => {
|
|
|
359
359
|
return true;
|
|
360
360
|
});
|
|
361
361
|
|
|
362
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
362
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/doNotation.js
|
|
363
363
|
var let_ = (map3) => dual(3, (self, name, f) => map3(self, (a) => Object.assign({}, a, {
|
|
364
364
|
[name]: f(a)
|
|
365
365
|
})));
|
|
@@ -370,11 +370,11 @@ var bind = (map3, flatMap3) => dual(3, (self, name, f) => flatMap3(self, (a) =>
|
|
|
370
370
|
[name]: b
|
|
371
371
|
}))));
|
|
372
372
|
|
|
373
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
374
|
-
var moduleVersion = "3.2.
|
|
373
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/version.js
|
|
374
|
+
var moduleVersion = "3.2.8";
|
|
375
375
|
var getCurrentVersion = () => moduleVersion;
|
|
376
376
|
|
|
377
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
377
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/GlobalValue.js
|
|
378
378
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
379
379
|
if (!(globalStoreId in globalThis)) {
|
|
380
380
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -387,7 +387,7 @@ var globalValue = (id, compute) => {
|
|
|
387
387
|
return globalStore.get(id);
|
|
388
388
|
};
|
|
389
389
|
|
|
390
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
390
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Predicate.js
|
|
391
391
|
var Predicate_exports = {};
|
|
392
392
|
__export(Predicate_exports, {
|
|
393
393
|
all: () => all,
|
|
@@ -524,10 +524,10 @@ var some = (collection) => (a) => {
|
|
|
524
524
|
return false;
|
|
525
525
|
};
|
|
526
526
|
|
|
527
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
527
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/errors.js
|
|
528
528
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
529
529
|
|
|
530
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
530
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Utils.js
|
|
531
531
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
532
532
|
var isGenKind = (u) => isObject(u) && GenKindTypeId in u;
|
|
533
533
|
var GenKindImpl = class {
|
|
@@ -771,7 +771,7 @@ var structuralRegionState = /* @__PURE__ */ globalValue("effect/Utils/isStructur
|
|
|
771
771
|
tester: void 0
|
|
772
772
|
}));
|
|
773
773
|
|
|
774
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
774
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Hash.js
|
|
775
775
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
776
776
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
777
777
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -796,8 +796,9 @@ var hash = (self) => {
|
|
|
796
796
|
case "object": {
|
|
797
797
|
if (self === null) {
|
|
798
798
|
return string("null");
|
|
799
|
-
}
|
|
800
|
-
|
|
799
|
+
} else if (self instanceof Date) {
|
|
800
|
+
return hash(self.toISOString());
|
|
801
|
+
} else if (isHash(self)) {
|
|
801
802
|
return self[symbol]();
|
|
802
803
|
} else {
|
|
803
804
|
return random(self);
|
|
@@ -860,7 +861,7 @@ var cached = function() {
|
|
|
860
861
|
return hash2;
|
|
861
862
|
};
|
|
862
863
|
|
|
863
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
864
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Equal.js
|
|
864
865
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
865
866
|
function equals() {
|
|
866
867
|
if (arguments.length === 1) {
|
|
@@ -884,6 +885,8 @@ function compareBoth(self, that) {
|
|
|
884
885
|
} else {
|
|
885
886
|
return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false;
|
|
886
887
|
}
|
|
888
|
+
} else if (self instanceof Date && that instanceof Date) {
|
|
889
|
+
return self.toISOString() === that.toISOString();
|
|
887
890
|
}
|
|
888
891
|
}
|
|
889
892
|
if (structuralRegionState.enabled) {
|
|
@@ -910,7 +913,7 @@ function compareBoth(self, that) {
|
|
|
910
913
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
911
914
|
var equivalence = () => equals;
|
|
912
915
|
|
|
913
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
916
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Inspectable.js
|
|
914
917
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
915
918
|
var toJSON = (x) => {
|
|
916
919
|
if (hasProperty(x, "toJSON") && isFunction2(x["toJSON"]) && x["toJSON"].length === 0) {
|
|
@@ -922,7 +925,7 @@ var toJSON = (x) => {
|
|
|
922
925
|
};
|
|
923
926
|
var format = (x) => JSON.stringify(x, null, 2);
|
|
924
927
|
|
|
925
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
928
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Pipeable.js
|
|
926
929
|
var pipeArguments = (self, args) => {
|
|
927
930
|
switch (args.length) {
|
|
928
931
|
case 1:
|
|
@@ -953,7 +956,7 @@ var pipeArguments = (self, args) => {
|
|
|
953
956
|
}
|
|
954
957
|
};
|
|
955
958
|
|
|
956
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
959
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/effectable.js
|
|
957
960
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
958
961
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
959
962
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -1014,7 +1017,7 @@ var EffectPrototype = {
|
|
|
1014
1017
|
}
|
|
1015
1018
|
};
|
|
1016
1019
|
|
|
1017
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1020
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/option.js
|
|
1018
1021
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
1019
1022
|
var CommonProto = {
|
|
1020
1023
|
...EffectPrototype,
|
|
@@ -1072,7 +1075,7 @@ var some2 = (value) => {
|
|
|
1072
1075
|
return a;
|
|
1073
1076
|
};
|
|
1074
1077
|
|
|
1075
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1078
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/either.js
|
|
1076
1079
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
1077
1080
|
var CommonProto2 = {
|
|
1078
1081
|
...EffectPrototype,
|
|
@@ -1136,14 +1139,14 @@ var right = (right2) => {
|
|
|
1136
1139
|
var getLeft = (self) => isRight(self) ? none : some2(self.left);
|
|
1137
1140
|
var getRight = (self) => isLeft(self) ? none : some2(self.right);
|
|
1138
1141
|
|
|
1139
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1142
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Either.js
|
|
1140
1143
|
var isLeft2 = isLeft;
|
|
1141
1144
|
var isRight2 = isRight;
|
|
1142
1145
|
|
|
1143
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1146
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/internal/array.js
|
|
1144
1147
|
var isNonEmptyArray = (self) => self.length > 0;
|
|
1145
1148
|
|
|
1146
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1149
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Option.js
|
|
1147
1150
|
var Option_exports = {};
|
|
1148
1151
|
__export(Option_exports, {
|
|
1149
1152
|
Do: () => Do,
|
|
@@ -1205,7 +1208,7 @@ __export(Option_exports, {
|
|
|
1205
1208
|
zipWith: () => zipWith
|
|
1206
1209
|
});
|
|
1207
1210
|
|
|
1208
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1211
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Order.js
|
|
1209
1212
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
1210
1213
|
var number2 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
1211
1214
|
var combineMany = /* @__PURE__ */ dual(2, (self, collection) => make2((a1, a2) => {
|
|
@@ -1239,7 +1242,7 @@ var array2 = (O) => make2((self, that) => {
|
|
|
1239
1242
|
var min = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
|
|
1240
1243
|
var max = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
|
|
1241
1244
|
|
|
1242
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1245
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Option.js
|
|
1243
1246
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
1244
1247
|
var none2 = () => none;
|
|
1245
1248
|
var some3 = some2;
|
|
@@ -1407,10 +1410,10 @@ var gen = (f) => {
|
|
|
1407
1410
|
}
|
|
1408
1411
|
};
|
|
1409
1412
|
|
|
1410
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1413
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Tuple.js
|
|
1411
1414
|
var make3 = (...elements) => elements;
|
|
1412
1415
|
|
|
1413
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1416
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Iterable.js
|
|
1414
1417
|
var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1415
1418
|
let i = 0;
|
|
1416
1419
|
for (const a of self) {
|
|
@@ -1429,7 +1432,7 @@ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
1429
1432
|
return none2();
|
|
1430
1433
|
});
|
|
1431
1434
|
|
|
1432
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1435
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Record.js
|
|
1433
1436
|
var collect = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1434
1437
|
const out = [];
|
|
1435
1438
|
for (const key of keys(self)) {
|
|
@@ -1440,7 +1443,7 @@ var collect = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
1440
1443
|
var toEntries = /* @__PURE__ */ collect((key, value) => [key, value]);
|
|
1441
1444
|
var keys = (self) => Object.keys(self);
|
|
1442
1445
|
|
|
1443
|
-
// ../../../node_modules/.pnpm/effect@3.2.
|
|
1446
|
+
// ../../../node_modules/.pnpm/effect@3.2.8/node_modules/effect/dist/esm/Array.js
|
|
1444
1447
|
var make4 = (...elements) => elements;
|
|
1445
1448
|
var allocate = (n) => new Array(n);
|
|
1446
1449
|
var makeBy = (n, f) => {
|
|
@@ -2013,12 +2016,9 @@ function getPropValue(attribute, context) {
|
|
|
2013
2016
|
const initialScope = context.sourceCode.getScope(attribute);
|
|
2014
2017
|
if (attribute.type === NodeType.JSXAttribute && "value" in attribute) {
|
|
2015
2018
|
const { value } = attribute;
|
|
2016
|
-
if (value === null)
|
|
2017
|
-
|
|
2018
|
-
if (value.type === NodeType.
|
|
2019
|
-
return Option_exports.some(getStaticValue(value, initialScope));
|
|
2020
|
-
if (value.type === NodeType.JSXExpressionContainer)
|
|
2021
|
-
return Option_exports.some(getStaticValue(value.expression, initialScope));
|
|
2019
|
+
if (value === null) return Option_exports.none();
|
|
2020
|
+
if (value.type === NodeType.Literal) return Option_exports.some(getStaticValue(value, initialScope));
|
|
2021
|
+
if (value.type === NodeType.JSXExpressionContainer) return Option_exports.some(getStaticValue(value.expression, initialScope));
|
|
2022
2022
|
return Option_exports.none();
|
|
2023
2023
|
}
|
|
2024
2024
|
const { argument } = attribute;
|
|
@@ -2037,13 +2037,10 @@ function findPropInProperties(properties, context, initialScope, seenProps = [])
|
|
|
2037
2037
|
findVariable(name, initialScope),
|
|
2038
2038
|
getVariableInit(0)
|
|
2039
2039
|
);
|
|
2040
|
-
if (Option_exports.isNone(maybeInit))
|
|
2041
|
-
return false;
|
|
2040
|
+
if (Option_exports.isNone(maybeInit)) return false;
|
|
2042
2041
|
const init2 = maybeInit.value;
|
|
2043
|
-
if (init2.type !== NodeType.ObjectExpression)
|
|
2044
|
-
|
|
2045
|
-
if (seenProps.includes(name))
|
|
2046
|
-
return false;
|
|
2042
|
+
if (init2.type !== NodeType.ObjectExpression) return false;
|
|
2043
|
+
if (seenProps.includes(name)) return false;
|
|
2047
2044
|
return Option_exports.isSome(
|
|
2048
2045
|
findPropInProperties(init2.properties, context, initialScope, [...seenProps, name])(propName)
|
|
2049
2046
|
);
|
|
@@ -2070,11 +2067,9 @@ function findPropInAttributes(attributes, context, initialScope) {
|
|
|
2070
2067
|
findVariable(name, initialScope),
|
|
2071
2068
|
getVariableInit(0)
|
|
2072
2069
|
);
|
|
2073
|
-
if (Option_exports.isNone(maybeInit))
|
|
2074
|
-
return false;
|
|
2070
|
+
if (Option_exports.isNone(maybeInit)) return false;
|
|
2075
2071
|
const init2 = maybeInit.value;
|
|
2076
|
-
if (!("properties" in init2))
|
|
2077
|
-
return false;
|
|
2072
|
+
if (!("properties" in init2)) return false;
|
|
2078
2073
|
return Option_exports.isSome(findPropInProperties(init2.properties, context, initialScope)(propName));
|
|
2079
2074
|
}).when(is(NodeType.ObjectExpression), (argument) => {
|
|
2080
2075
|
return Option_exports.isSome(findPropInProperties(argument.properties, context, initialScope)(propName));
|
|
@@ -2108,8 +2103,7 @@ function traverseUpProp(node, predicate = Function_exports.constTrue) {
|
|
|
2108
2103
|
|
|
2109
2104
|
// src/prop/misc.ts
|
|
2110
2105
|
function isInsidePropValue(node) {
|
|
2111
|
-
if (isStringLiteral(node))
|
|
2112
|
-
return node.parent.type === NodeType.JSXAttribute;
|
|
2106
|
+
if (isStringLiteral(node)) return node.parent.type === NodeType.JSXAttribute;
|
|
2113
2107
|
return Option_exports.isSome(traverseUpProp(node, (n) => n.value?.type === NodeType.JSXExpressionContainer));
|
|
2114
2108
|
}
|
|
2115
2109
|
var isLiteral = isOneOf([NodeType.Literal, NodeType.JSXText]);
|
|
@@ -2136,13 +2130,11 @@ var JSXValueHint = {
|
|
|
2136
2130
|
};
|
|
2137
2131
|
var DEFAULT_JSX_VALUE_HINT = JSXValueHint.SkipUndefinedLiteral | JSXValueHint.SkipBooleanLiteral;
|
|
2138
2132
|
function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
|
|
2139
|
-
if (!node)
|
|
2140
|
-
return false;
|
|
2133
|
+
if (!node) return false;
|
|
2141
2134
|
return match$1(node).with({ type: NodeType.JSXElement }, Function_exports.constTrue).with({ type: NodeType.JSXFragment }, Function_exports.constTrue).with({ type: NodeType.JSXMemberExpression }, Function_exports.constTrue).with({ type: NodeType.JSXNamespacedName }, Function_exports.constTrue).with({ type: NodeType.Literal }, (node2) => {
|
|
2142
2135
|
return match$1(node2.value).with(null, () => !(hint & JSXValueHint.SkipNullLiteral)).with(P.boolean, () => !(hint & JSXValueHint.SkipBooleanLiteral)).with(P.string, () => !(hint & JSXValueHint.SkipStringLiteral)).with(P.number, () => !(hint & JSXValueHint.SkipNumberLiteral)).otherwise(Function_exports.constFalse);
|
|
2143
2136
|
}).with({ type: NodeType.TemplateLiteral }, () => !(hint & JSXValueHint.SkipStringLiteral)).with({ type: NodeType.ArrayExpression }, (node2) => {
|
|
2144
|
-
if (hint & JSXValueHint.StrictArray)
|
|
2145
|
-
return node2.elements.every((n) => isJSXValue(n, context, hint));
|
|
2137
|
+
if (hint & JSXValueHint.StrictArray) return node2.elements.every((n) => isJSXValue(n, context, hint));
|
|
2146
2138
|
return node2.elements.some((n) => isJSXValue(n, context, hint));
|
|
2147
2139
|
}).with({ type: NodeType.ConditionalExpression }, (node2) => {
|
|
2148
2140
|
function leftHasJSX(node3) {
|
|
@@ -2167,15 +2159,12 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
|
|
|
2167
2159
|
const exp = node2.expressions.at(-1);
|
|
2168
2160
|
return isJSXValue(exp, context, hint);
|
|
2169
2161
|
}).with({ type: NodeType.CallExpression }, (node2) => {
|
|
2170
|
-
if (hint & JSXValueHint.SkipCreateElement)
|
|
2171
|
-
return false;
|
|
2162
|
+
if (hint & JSXValueHint.SkipCreateElement) return false;
|
|
2172
2163
|
return match$1(node2.callee).with({ type: NodeType.Identifier, name: "createElement" }, Function_exports.constTrue).with({ type: NodeType.MemberExpression, property: { name: "createElement" } }, Function_exports.constTrue).otherwise(Function_exports.constFalse);
|
|
2173
2164
|
}).with({ type: NodeType.Identifier }, (node2) => {
|
|
2174
2165
|
const { name } = node2;
|
|
2175
|
-
if (name === "undefined")
|
|
2176
|
-
|
|
2177
|
-
if (isJSXTagNameExpression(node2))
|
|
2178
|
-
return true;
|
|
2166
|
+
if (name === "undefined") return !(hint & JSXValueHint.SkipUndefinedLiteral);
|
|
2167
|
+
if (isJSXTagNameExpression(node2)) return true;
|
|
2179
2168
|
const initialScope = context.sourceCode.getScope(node2);
|
|
2180
2169
|
const maybeVariable = findVariable(name, initialScope);
|
|
2181
2170
|
return Function_exports.pipe(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "1.5.15-next.
|
|
3
|
+
"version": "1.5.15-next.2",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/scope-manager": "^7.
|
|
39
|
-
"@typescript-eslint/types": "^7.
|
|
40
|
-
"@typescript-eslint/utils": "^7.
|
|
38
|
+
"@typescript-eslint/scope-manager": "^7.12.0",
|
|
39
|
+
"@typescript-eslint/types": "^7.12.0",
|
|
40
|
+
"@typescript-eslint/utils": "^7.12.0",
|
|
41
41
|
"micro-memoize": "4.1.2",
|
|
42
42
|
"ts-pattern": "5.1.2",
|
|
43
|
-
"@eslint-react/ast": "1.5.15-next.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/ast": "1.5.15-next.2",
|
|
44
|
+
"@eslint-react/shared": "1.5.15-next.2",
|
|
45
|
+
"@eslint-react/tools": "1.5.15-next.2",
|
|
46
|
+
"@eslint-react/types": "1.5.15-next.2",
|
|
47
|
+
"@eslint-react/var": "1.5.15-next.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"effect": "3.2.
|
|
51
|
-
"tsup": "8.0
|
|
50
|
+
"effect": "3.2.8",
|
|
51
|
+
"tsup": "8.1.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup",
|