@eslint-react/jsx 1.5.4-beta.0 → 1.5.4-beta.5
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 +27 -22
- package/dist/index.mjs +27 -22
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __export = (target, all3) => {
|
|
|
17
17
|
__defProp(target, name, { get: all3[name], enumerable: true });
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
20
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Function.js
|
|
21
21
|
var Function_exports = {};
|
|
22
22
|
__export(Function_exports, {
|
|
23
23
|
SK: () => SK,
|
|
@@ -37,6 +37,7 @@ __export(Function_exports, {
|
|
|
37
37
|
identity: () => identity,
|
|
38
38
|
isFunction: () => isFunction,
|
|
39
39
|
pipe: () => pipe,
|
|
40
|
+
satisfies: () => satisfies,
|
|
40
41
|
tupled: () => tupled,
|
|
41
42
|
unsafeCoerce: () => unsafeCoerce,
|
|
42
43
|
untupled: () => untupled
|
|
@@ -105,6 +106,7 @@ var dual = function(arity, body) {
|
|
|
105
106
|
};
|
|
106
107
|
var apply = (a2) => (self) => self(a2);
|
|
107
108
|
var identity = (a2) => a2;
|
|
109
|
+
var satisfies = () => (b2) => b2;
|
|
108
110
|
var unsafeCoerce = identity;
|
|
109
111
|
var constant = (value) => () => value;
|
|
110
112
|
var constTrue = /* @__PURE__ */ constant(true);
|
|
@@ -190,10 +192,10 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
190
192
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
191
193
|
var SK = (_2, b2) => b2;
|
|
192
194
|
|
|
193
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
194
|
-
var moduleVersion = "2.3.
|
|
195
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/version.js
|
|
196
|
+
var moduleVersion = "2.3.6";
|
|
195
197
|
|
|
196
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
198
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/GlobalValue.js
|
|
197
199
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${moduleVersion}`);
|
|
198
200
|
if (!(globalStoreId in globalThis)) {
|
|
199
201
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -206,7 +208,7 @@ var globalValue = (id, compute) => {
|
|
|
206
208
|
return globalStore.get(id);
|
|
207
209
|
};
|
|
208
210
|
|
|
209
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
211
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Predicate.js
|
|
210
212
|
var Predicate_exports = {};
|
|
211
213
|
__export(Predicate_exports, {
|
|
212
214
|
all: () => all,
|
|
@@ -335,7 +337,7 @@ var some = (collection) => (a2) => {
|
|
|
335
337
|
return false;
|
|
336
338
|
};
|
|
337
339
|
|
|
338
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
340
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Utils.js
|
|
339
341
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
340
342
|
var GenKindImpl = class {
|
|
341
343
|
value;
|
|
@@ -555,7 +557,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
555
557
|
out[1] = lo;
|
|
556
558
|
}
|
|
557
559
|
|
|
558
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
560
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Hash.js
|
|
559
561
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
560
562
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
561
563
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -618,7 +620,7 @@ var string = (str) => {
|
|
|
618
620
|
return optimize(h2);
|
|
619
621
|
};
|
|
620
622
|
|
|
621
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
623
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Equal.js
|
|
622
624
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
623
625
|
function equals() {
|
|
624
626
|
if (arguments.length === 1) {
|
|
@@ -644,10 +646,10 @@ function compareBoth(self, that) {
|
|
|
644
646
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
645
647
|
var equivalence = () => (self, that) => equals(self, that);
|
|
646
648
|
|
|
647
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
649
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Equivalence.js
|
|
648
650
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
649
651
|
|
|
650
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
652
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Inspectable.js
|
|
651
653
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
652
654
|
var toJSON = (x2) => {
|
|
653
655
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -659,7 +661,7 @@ var toJSON = (x2) => {
|
|
|
659
661
|
};
|
|
660
662
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
661
663
|
|
|
662
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
664
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Option.js
|
|
663
665
|
var Option_exports = {};
|
|
664
666
|
__export(Option_exports, {
|
|
665
667
|
Do: () => Do,
|
|
@@ -721,7 +723,7 @@ __export(Option_exports, {
|
|
|
721
723
|
zipWith: () => zipWith
|
|
722
724
|
});
|
|
723
725
|
|
|
724
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
726
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Pipeable.js
|
|
725
727
|
var pipeArguments = (self, args) => {
|
|
726
728
|
switch (args.length) {
|
|
727
729
|
case 1:
|
|
@@ -752,7 +754,7 @@ var pipeArguments = (self, args) => {
|
|
|
752
754
|
}
|
|
753
755
|
};
|
|
754
756
|
|
|
755
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
757
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/effectable.js
|
|
756
758
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
757
759
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
758
760
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -810,7 +812,7 @@ var EffectPrototype = {
|
|
|
810
812
|
}
|
|
811
813
|
};
|
|
812
814
|
|
|
813
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
815
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/option.js
|
|
814
816
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
815
817
|
var CommonProto = {
|
|
816
818
|
...EffectPrototype,
|
|
@@ -867,7 +869,7 @@ var some2 = (value) => {
|
|
|
867
869
|
return a2;
|
|
868
870
|
};
|
|
869
871
|
|
|
870
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
872
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/either.js
|
|
871
873
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
872
874
|
var CommonProto2 = {
|
|
873
875
|
...EffectPrototype,
|
|
@@ -931,10 +933,10 @@ var right = (right2) => {
|
|
|
931
933
|
var getLeft = (self) => isRight(self) ? none : some2(self.left);
|
|
932
934
|
var getRight = (self) => isLeft(self) ? none : some2(self.right);
|
|
933
935
|
|
|
934
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
936
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Order.js
|
|
935
937
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
936
938
|
|
|
937
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
939
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Option.js
|
|
938
940
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
939
941
|
var none2 = () => none;
|
|
940
942
|
var some3 = some2;
|
|
@@ -990,7 +992,10 @@ var as = /* @__PURE__ */ dual(2, (self, b2) => map(self, () => b2));
|
|
|
990
992
|
var asUnit = /* @__PURE__ */ as(void 0);
|
|
991
993
|
var unit = /* @__PURE__ */ some3(void 0);
|
|
992
994
|
var flatMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2(self.value));
|
|
993
|
-
var andThen = /* @__PURE__ */ dual(2, (self, f2) =>
|
|
995
|
+
var andThen = /* @__PURE__ */ dual(2, (self, f2) => flatMap(self, (a2) => {
|
|
996
|
+
const b2 = isFunction(f2) ? f2(a2) : f2;
|
|
997
|
+
return isOption2(b2) ? b2 : some3(b2);
|
|
998
|
+
}));
|
|
994
999
|
var flatMapNullable = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : fromNullable(f2(self.value)));
|
|
995
1000
|
var flatten = /* @__PURE__ */ flatMap(identity);
|
|
996
1001
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap(self, () => that));
|
|
@@ -1440,7 +1445,7 @@ function isPropertyOfPragma(name, context, pragma = getPragmaFromContext(context
|
|
|
1440
1445
|
}
|
|
1441
1446
|
function isFromPragma(name) {
|
|
1442
1447
|
return (node, context) => {
|
|
1443
|
-
const initialScope = context.sourceCode.getScope
|
|
1448
|
+
const initialScope = context.sourceCode.getScope(node);
|
|
1444
1449
|
if (node.type === ast.NodeType.MemberExpression)
|
|
1445
1450
|
return isPropertyOfPragma(name, context)(node);
|
|
1446
1451
|
if (node.name === name)
|
|
@@ -1450,7 +1455,7 @@ function isFromPragma(name) {
|
|
|
1450
1455
|
}
|
|
1451
1456
|
function isFromPragmaMember(pragmaMemberName, name) {
|
|
1452
1457
|
return (node, context, pragma = getPragmaFromContext(context)) => {
|
|
1453
|
-
const initialScope = context.sourceCode.getScope
|
|
1458
|
+
const initialScope = context.sourceCode.getScope(node);
|
|
1454
1459
|
if (node.property.type !== ast.NodeType.Identifier || node.property.name !== name)
|
|
1455
1460
|
return false;
|
|
1456
1461
|
if (node.object.type === ast.NodeType.Identifier && node.object.name === pragmaMemberName) {
|
|
@@ -1613,7 +1618,7 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
|
|
|
1613
1618
|
return !(hint & JSXValueHint.SkipUndefinedLiteral);
|
|
1614
1619
|
if (ast.isJSXTagNameExpression(node2))
|
|
1615
1620
|
return true;
|
|
1616
|
-
const initialScope = context.sourceCode.getScope
|
|
1621
|
+
const initialScope = context.sourceCode.getScope(node2);
|
|
1617
1622
|
const maybeVariable = _var.findVariable(name, initialScope);
|
|
1618
1623
|
return Function_exports.pipe(
|
|
1619
1624
|
maybeVariable,
|
|
@@ -1639,7 +1644,7 @@ function getProp(props, propName, context, initialScope) {
|
|
|
1639
1644
|
return findPropInAttributes(props, context, initialScope)(propName);
|
|
1640
1645
|
}
|
|
1641
1646
|
function getPropValue(attribute, context) {
|
|
1642
|
-
const initialScope = context.sourceCode.getScope
|
|
1647
|
+
const initialScope = context.sourceCode.getScope(attribute);
|
|
1643
1648
|
if (attribute.type === ast.NodeType.JSXAttribute && "value" in attribute) {
|
|
1644
1649
|
const { value } = attribute;
|
|
1645
1650
|
if (value === null)
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var __export = (target, all3) => {
|
|
|
11
11
|
__defProp(target, name, { get: all3[name], enumerable: true });
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
14
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Function.js
|
|
15
15
|
var Function_exports = {};
|
|
16
16
|
__export(Function_exports, {
|
|
17
17
|
SK: () => SK,
|
|
@@ -31,6 +31,7 @@ __export(Function_exports, {
|
|
|
31
31
|
identity: () => identity,
|
|
32
32
|
isFunction: () => isFunction,
|
|
33
33
|
pipe: () => pipe,
|
|
34
|
+
satisfies: () => satisfies,
|
|
34
35
|
tupled: () => tupled,
|
|
35
36
|
unsafeCoerce: () => unsafeCoerce,
|
|
36
37
|
untupled: () => untupled
|
|
@@ -99,6 +100,7 @@ var dual = function(arity, body) {
|
|
|
99
100
|
};
|
|
100
101
|
var apply = (a2) => (self) => self(a2);
|
|
101
102
|
var identity = (a2) => a2;
|
|
103
|
+
var satisfies = () => (b2) => b2;
|
|
102
104
|
var unsafeCoerce = identity;
|
|
103
105
|
var constant = (value) => () => value;
|
|
104
106
|
var constTrue = /* @__PURE__ */ constant(true);
|
|
@@ -184,10 +186,10 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
184
186
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
185
187
|
var SK = (_2, b2) => b2;
|
|
186
188
|
|
|
187
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
188
|
-
var moduleVersion = "2.3.
|
|
189
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/version.js
|
|
190
|
+
var moduleVersion = "2.3.6";
|
|
189
191
|
|
|
190
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
192
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/GlobalValue.js
|
|
191
193
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${moduleVersion}`);
|
|
192
194
|
if (!(globalStoreId in globalThis)) {
|
|
193
195
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -200,7 +202,7 @@ var globalValue = (id, compute) => {
|
|
|
200
202
|
return globalStore.get(id);
|
|
201
203
|
};
|
|
202
204
|
|
|
203
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
205
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Predicate.js
|
|
204
206
|
var Predicate_exports = {};
|
|
205
207
|
__export(Predicate_exports, {
|
|
206
208
|
all: () => all,
|
|
@@ -329,7 +331,7 @@ var some = (collection) => (a2) => {
|
|
|
329
331
|
return false;
|
|
330
332
|
};
|
|
331
333
|
|
|
332
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
334
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Utils.js
|
|
333
335
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
334
336
|
var GenKindImpl = class {
|
|
335
337
|
value;
|
|
@@ -549,7 +551,7 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
549
551
|
out[1] = lo;
|
|
550
552
|
}
|
|
551
553
|
|
|
552
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
554
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Hash.js
|
|
553
555
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
554
556
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
555
557
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -612,7 +614,7 @@ var string = (str) => {
|
|
|
612
614
|
return optimize(h2);
|
|
613
615
|
};
|
|
614
616
|
|
|
615
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
617
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Equal.js
|
|
616
618
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
617
619
|
function equals() {
|
|
618
620
|
if (arguments.length === 1) {
|
|
@@ -638,10 +640,10 @@ function compareBoth(self, that) {
|
|
|
638
640
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
639
641
|
var equivalence = () => (self, that) => equals(self, that);
|
|
640
642
|
|
|
641
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
643
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Equivalence.js
|
|
642
644
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
643
645
|
|
|
644
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
646
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Inspectable.js
|
|
645
647
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
646
648
|
var toJSON = (x2) => {
|
|
647
649
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -653,7 +655,7 @@ var toJSON = (x2) => {
|
|
|
653
655
|
};
|
|
654
656
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
655
657
|
|
|
656
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
658
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Option.js
|
|
657
659
|
var Option_exports = {};
|
|
658
660
|
__export(Option_exports, {
|
|
659
661
|
Do: () => Do,
|
|
@@ -715,7 +717,7 @@ __export(Option_exports, {
|
|
|
715
717
|
zipWith: () => zipWith
|
|
716
718
|
});
|
|
717
719
|
|
|
718
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
720
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Pipeable.js
|
|
719
721
|
var pipeArguments = (self, args) => {
|
|
720
722
|
switch (args.length) {
|
|
721
723
|
case 1:
|
|
@@ -746,7 +748,7 @@ var pipeArguments = (self, args) => {
|
|
|
746
748
|
}
|
|
747
749
|
};
|
|
748
750
|
|
|
749
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
751
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/effectable.js
|
|
750
752
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
751
753
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
752
754
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -804,7 +806,7 @@ var EffectPrototype = {
|
|
|
804
806
|
}
|
|
805
807
|
};
|
|
806
808
|
|
|
807
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
809
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/option.js
|
|
808
810
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
809
811
|
var CommonProto = {
|
|
810
812
|
...EffectPrototype,
|
|
@@ -861,7 +863,7 @@ var some2 = (value) => {
|
|
|
861
863
|
return a2;
|
|
862
864
|
};
|
|
863
865
|
|
|
864
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
866
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/either.js
|
|
865
867
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
866
868
|
var CommonProto2 = {
|
|
867
869
|
...EffectPrototype,
|
|
@@ -925,10 +927,10 @@ var right = (right2) => {
|
|
|
925
927
|
var getLeft = (self) => isRight(self) ? none : some2(self.left);
|
|
926
928
|
var getRight = (self) => isLeft(self) ? none : some2(self.right);
|
|
927
929
|
|
|
928
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
930
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Order.js
|
|
929
931
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
930
932
|
|
|
931
|
-
// ../../../node_modules/.pnpm/effect@2.3.
|
|
933
|
+
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Option.js
|
|
932
934
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
933
935
|
var none2 = () => none;
|
|
934
936
|
var some3 = some2;
|
|
@@ -984,7 +986,10 @@ var as = /* @__PURE__ */ dual(2, (self, b2) => map(self, () => b2));
|
|
|
984
986
|
var asUnit = /* @__PURE__ */ as(void 0);
|
|
985
987
|
var unit = /* @__PURE__ */ some3(void 0);
|
|
986
988
|
var flatMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2(self.value));
|
|
987
|
-
var andThen = /* @__PURE__ */ dual(2, (self, f2) =>
|
|
989
|
+
var andThen = /* @__PURE__ */ dual(2, (self, f2) => flatMap(self, (a2) => {
|
|
990
|
+
const b2 = isFunction(f2) ? f2(a2) : f2;
|
|
991
|
+
return isOption2(b2) ? b2 : some3(b2);
|
|
992
|
+
}));
|
|
988
993
|
var flatMapNullable = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : fromNullable(f2(self.value)));
|
|
989
994
|
var flatten = /* @__PURE__ */ flatMap(identity);
|
|
990
995
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap(self, () => that));
|
|
@@ -1434,7 +1439,7 @@ function isPropertyOfPragma(name, context, pragma = getPragmaFromContext(context
|
|
|
1434
1439
|
}
|
|
1435
1440
|
function isFromPragma(name) {
|
|
1436
1441
|
return (node, context) => {
|
|
1437
|
-
const initialScope = context.sourceCode.getScope
|
|
1442
|
+
const initialScope = context.sourceCode.getScope(node);
|
|
1438
1443
|
if (node.type === NodeType.MemberExpression)
|
|
1439
1444
|
return isPropertyOfPragma(name, context)(node);
|
|
1440
1445
|
if (node.name === name)
|
|
@@ -1444,7 +1449,7 @@ function isFromPragma(name) {
|
|
|
1444
1449
|
}
|
|
1445
1450
|
function isFromPragmaMember(pragmaMemberName, name) {
|
|
1446
1451
|
return (node, context, pragma = getPragmaFromContext(context)) => {
|
|
1447
|
-
const initialScope = context.sourceCode.getScope
|
|
1452
|
+
const initialScope = context.sourceCode.getScope(node);
|
|
1448
1453
|
if (node.property.type !== NodeType.Identifier || node.property.name !== name)
|
|
1449
1454
|
return false;
|
|
1450
1455
|
if (node.object.type === NodeType.Identifier && node.object.name === pragmaMemberName) {
|
|
@@ -1607,7 +1612,7 @@ function isJSXValue(node, context, hint = DEFAULT_JSX_VALUE_HINT) {
|
|
|
1607
1612
|
return !(hint & JSXValueHint.SkipUndefinedLiteral);
|
|
1608
1613
|
if (isJSXTagNameExpression(node2))
|
|
1609
1614
|
return true;
|
|
1610
|
-
const initialScope = context.sourceCode.getScope
|
|
1615
|
+
const initialScope = context.sourceCode.getScope(node2);
|
|
1611
1616
|
const maybeVariable = findVariable(name, initialScope);
|
|
1612
1617
|
return Function_exports.pipe(
|
|
1613
1618
|
maybeVariable,
|
|
@@ -1633,7 +1638,7 @@ function getProp(props, propName, context, initialScope) {
|
|
|
1633
1638
|
return findPropInAttributes(props, context, initialScope)(propName);
|
|
1634
1639
|
}
|
|
1635
1640
|
function getPropValue(attribute, context) {
|
|
1636
|
-
const initialScope = context.sourceCode.getScope
|
|
1641
|
+
const initialScope = context.sourceCode.getScope(attribute);
|
|
1637
1642
|
if (attribute.type === NodeType.JSXAttribute && "value" in attribute) {
|
|
1638
1643
|
const { value } = attribute;
|
|
1639
1644
|
if (value === null)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "1.5.4-beta.
|
|
3
|
+
"version": "1.5.4-beta.5",
|
|
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,18 +35,18 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/scope-manager": ">=
|
|
39
|
-
"@typescript-eslint/types": ">=
|
|
40
|
-
"@typescript-eslint/utils": ">=
|
|
38
|
+
"@typescript-eslint/scope-manager": ">=7.0.1",
|
|
39
|
+
"@typescript-eslint/types": ">=7.0.1",
|
|
40
|
+
"@typescript-eslint/utils": ">=7.0.1",
|
|
41
41
|
"micro-memoize": "4.1.2",
|
|
42
|
-
"@eslint-react/ast": "1.5.4-beta.
|
|
43
|
-
"@eslint-react/shared": "1.5.4-beta.
|
|
44
|
-
"@eslint-react/tools": "1.5.4-beta.
|
|
45
|
-
"@eslint-react/types": "1.5.4-beta.
|
|
46
|
-
"@eslint-react/var": "1.5.4-beta.
|
|
42
|
+
"@eslint-react/ast": "1.5.4-beta.5",
|
|
43
|
+
"@eslint-react/shared": "1.5.4-beta.5",
|
|
44
|
+
"@eslint-react/tools": "1.5.4-beta.5",
|
|
45
|
+
"@eslint-react/types": "1.5.4-beta.5",
|
|
46
|
+
"@eslint-react/var": "1.5.4-beta.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"effect": "2.3.
|
|
49
|
+
"effect": "2.3.6"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup",
|