@eslint-react/jsx 5.30.0-beta.2 → 5.30.0-beta.21
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.d.ts +421 -274
- package/dist/index.js +154 -184
- package/package.json +7 -9
package/dist/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Check, Extract, Traverse } from "@eslint-react/ast";
|
|
2
|
-
import { resolve } from "@eslint-react/var";
|
|
3
2
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
4
3
|
import { getStaticValue } from "@typescript-eslint/utils/ast-utils";
|
|
5
4
|
import { getText } from "@eslint-react/eslint";
|
|
6
|
-
import { P, match } from "ts-pattern";
|
|
7
5
|
// ../../.pkgs/eff/dist/index.js
|
|
8
6
|
const pipeArguments = (self, args) => {
|
|
9
7
|
switch (args.length) {
|
|
@@ -67,13 +65,19 @@ const absurd = (_) => {
|
|
|
67
65
|
throw new Error("Called `absurd` function which should be uncallable");
|
|
68
66
|
};
|
|
69
67
|
cast(absurd);
|
|
70
|
-
|
|
68
|
+
function not(predicate) {
|
|
69
|
+
return (data) => !predicate(data);
|
|
70
|
+
}
|
|
71
|
+
const and = dual(2, (a, b) => (data) => a(data) && b(data));
|
|
71
72
|
const or = dual(2, (a, b) => (data) => a(data) || b(data));
|
|
72
73
|
dual(2, (a, b) => (data) => a(data) !== b(data));
|
|
73
74
|
dual(2, (a, b) => (data) => a(data) === b(data));
|
|
74
75
|
dual(2, (antecedent, consequent) => (data) => !antecedent(data) || consequent(data));
|
|
75
76
|
dual(2, (a, b) => (data) => !a(data) && !b(data));
|
|
76
77
|
dual(2, (a, b) => (data) => !a(data) || !b(data));
|
|
78
|
+
function isString(input) {
|
|
79
|
+
return typeof input === "string";
|
|
80
|
+
}
|
|
77
81
|
function isFunction(input) {
|
|
78
82
|
return typeof input === "function";
|
|
79
83
|
}
|
|
@@ -95,148 +99,105 @@ dual(2, (self, predicate) => {
|
|
|
95
99
|
while (idx < len && predicate(input[idx], idx)) idx++;
|
|
96
100
|
return input.slice(0, idx);
|
|
97
101
|
});
|
|
98
|
-
// src/attribute
|
|
102
|
+
// src/attribute.ts
|
|
99
103
|
function getAttributeName(node) {
|
|
100
|
-
|
|
101
|
-
return node.name.namespace.name + ":" + node.name.name.name;
|
|
104
|
+
return Extract.getJSXName(node.name);
|
|
102
105
|
}
|
|
103
|
-
const
|
|
104
|
-
return node
|
|
106
|
+
const isPlainAttribute = dual(2, (node, name) => {
|
|
107
|
+
return node?.type === AST_NODE_TYPES.JSXAttribute && node.name.type === AST_NODE_TYPES.JSXIdentifier && node.name.name === name;
|
|
105
108
|
});
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const guard = (n) => {
|
|
115
|
-
return n.type === AST_NODE_TYPES.JSXAttribute && test(n);
|
|
116
|
-
};
|
|
117
|
-
return Traverse.findParent(node, guard) ?? void 0;
|
|
118
|
-
}
|
|
119
|
-
function findSpreadProperty(context, argument, name, seen = /* @__PURE__ */ new Set()) {
|
|
120
|
-
let objectExpression;
|
|
121
|
-
if (Check.isIdentifier(argument)) {
|
|
122
|
-
let initNode = resolve(context, argument);
|
|
123
|
-
while (initNode != null && Check.isIdentifier(initNode) && !seen.has(initNode)) {
|
|
124
|
-
seen.add(initNode);
|
|
125
|
-
initNode = resolve(context, initNode);
|
|
126
|
-
}
|
|
127
|
-
if (initNode?.type === AST_NODE_TYPES.ObjectExpression) objectExpression = initNode;
|
|
128
|
-
} else if (argument.type === AST_NODE_TYPES.ObjectExpression) objectExpression = argument;
|
|
129
|
-
if (objectExpression == null || seen.has(objectExpression)) return void 0;
|
|
130
|
-
seen.add(objectExpression);
|
|
131
|
-
const { properties } = objectExpression;
|
|
132
|
-
for (let i = properties.length - 1; i >= 0; i--) {
|
|
133
|
-
const property = properties[i];
|
|
134
|
-
if (property == null) continue;
|
|
135
|
-
if (property.type === AST_NODE_TYPES.Property) {
|
|
136
|
-
const { key } = property;
|
|
137
|
-
if (property.computed) {
|
|
138
|
-
const keyScope = context.sourceCode.getScope(key);
|
|
139
|
-
if (getStaticValue(key, keyScope)?.value === name) return property;
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
if (Check.isIdentifier(key, name)) return property;
|
|
143
|
-
if (key.type === AST_NODE_TYPES.Literal && key.value === name) return property;
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
const found = findSpreadProperty(context, property.argument, name, seen);
|
|
147
|
-
if (found != null) return found;
|
|
109
|
+
const isAttributeNamed = dual(2, (node, name) => {
|
|
110
|
+
return node?.type === AST_NODE_TYPES.JSXAttribute && getAttributeName(node) === name;
|
|
111
|
+
});
|
|
112
|
+
function findAttribute(element, name) {
|
|
113
|
+
const { attributes } = element.openingElement;
|
|
114
|
+
for (let i = attributes.length - 1; i >= 0; i--) {
|
|
115
|
+
const attribute = attributes[i];
|
|
116
|
+
if (attribute?.type === AST_NODE_TYPES.JSXAttribute && isAttributeNamed(attribute, name)) return attribute;
|
|
148
117
|
}
|
|
118
|
+
return null;
|
|
149
119
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
function hasEveryAttribute(context, element, names) {
|
|
158
|
-
return names.every((name) => findAttribute(context, element, name) != null);
|
|
120
|
+
function findParentAttribute(node, test) {
|
|
121
|
+
if (node == null) return null;
|
|
122
|
+
const predicate = test == null ? () => true : typeof test === "function" ? test : isAttributeNamed(test);
|
|
123
|
+
const guard = (n) => {
|
|
124
|
+
return n.type === AST_NODE_TYPES.JSXAttribute && predicate(n);
|
|
125
|
+
};
|
|
126
|
+
return Traverse.findParent(node, guard);
|
|
159
127
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (attribute.type === AST_NODE_TYPES.JSXAttribute) return resolveJSXAttribute(context, attribute);
|
|
163
|
-
return resolveJSXSpreadAttribute(context, attribute, name);
|
|
128
|
+
function hasAttribute(element, name) {
|
|
129
|
+
return findAttribute(element, name) != null;
|
|
164
130
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return resolveAttributeValue(context, attr, name);
|
|
131
|
+
function hasAnyAttribute(element, names) {
|
|
132
|
+
if (names.length === 0) return false;
|
|
133
|
+
return element.openingElement.attributes.some((a) => a.type === AST_NODE_TYPES.JSXAttribute && names.includes(getAttributeName(a)));
|
|
169
134
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
135
|
+
function hasEveryAttribute(element, names) {
|
|
136
|
+
if (names.length === 0) return true;
|
|
137
|
+
const remaining = new Set(names);
|
|
138
|
+
for (const attribute of element.openingElement.attributes) {
|
|
139
|
+
if (attribute.type === AST_NODE_TYPES.JSXAttribute) remaining.delete(getAttributeName(attribute));
|
|
140
|
+
if (remaining.size === 0) return true;
|
|
141
|
+
}
|
|
142
|
+
return false;
|
|
172
143
|
}
|
|
173
|
-
function
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
144
|
+
function getAttributeValue(attribute) {
|
|
145
|
+
const { value } = attribute;
|
|
146
|
+
if (value == null) return {
|
|
176
147
|
kind: "boolean",
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
148
|
+
attribute,
|
|
149
|
+
node: null
|
|
181
150
|
};
|
|
182
|
-
switch (
|
|
183
|
-
case AST_NODE_TYPES.Literal: {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
case AST_NODE_TYPES.JSXExpressionContainer: {
|
|
194
|
-
const expr = node.value.expression;
|
|
195
|
-
if (expr.type === AST_NODE_TYPES.JSXEmptyExpression) return {
|
|
151
|
+
switch (value.type) {
|
|
152
|
+
case AST_NODE_TYPES.Literal: return {
|
|
153
|
+
kind: "literal",
|
|
154
|
+
attribute,
|
|
155
|
+
node: value
|
|
156
|
+
};
|
|
157
|
+
case AST_NODE_TYPES.JSXExpressionContainer:
|
|
158
|
+
if (value.expression.type === AST_NODE_TYPES.JSXEmptyExpression) return {
|
|
196
159
|
kind: "missing",
|
|
197
|
-
|
|
198
|
-
|
|
160
|
+
attribute,
|
|
161
|
+
node: value.expression
|
|
199
162
|
};
|
|
200
163
|
return {
|
|
201
164
|
kind: "unknown",
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return getStaticValue(expr, scope)?.value;
|
|
205
|
-
}
|
|
165
|
+
attribute,
|
|
166
|
+
node: value.expression
|
|
206
167
|
};
|
|
207
|
-
|
|
208
|
-
case AST_NODE_TYPES.JSXElement: return {
|
|
209
|
-
kind: "element",
|
|
210
|
-
node: node.value,
|
|
211
|
-
toStatic() {}
|
|
212
|
-
};
|
|
168
|
+
case AST_NODE_TYPES.JSXElement:
|
|
213
169
|
case AST_NODE_TYPES.JSXFragment: return {
|
|
214
170
|
kind: "element",
|
|
215
|
-
|
|
216
|
-
|
|
171
|
+
attribute,
|
|
172
|
+
node: value
|
|
217
173
|
};
|
|
218
|
-
case AST_NODE_TYPES.JSXSpreadChild: return {
|
|
219
|
-
kind: "
|
|
220
|
-
|
|
221
|
-
|
|
174
|
+
case AST_NODE_TYPES.JSXSpreadChild: return value.expression.type === AST_NODE_TYPES.JSXEmptyExpression ? {
|
|
175
|
+
kind: "missing",
|
|
176
|
+
attribute,
|
|
177
|
+
node: value.expression
|
|
178
|
+
} : {
|
|
179
|
+
kind: "unknown",
|
|
180
|
+
attribute,
|
|
181
|
+
node: value.expression
|
|
222
182
|
};
|
|
223
183
|
}
|
|
224
184
|
}
|
|
225
|
-
function
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
185
|
+
function getAttributeValueByName(element, name) {
|
|
186
|
+
const attribute = findAttribute(element, name);
|
|
187
|
+
return attribute == null ? null : getAttributeValue(attribute);
|
|
188
|
+
}
|
|
189
|
+
function getAttributeStaticValue(context, value) {
|
|
190
|
+
if (value == null) return void 0;
|
|
191
|
+
switch (value.kind) {
|
|
192
|
+
case "boolean": return true;
|
|
193
|
+
case "literal": return value.node.value;
|
|
194
|
+
case "unknown": return getStaticValue(value.node, context.sourceCode.getScope(value.node))?.value;
|
|
195
|
+
case "element":
|
|
196
|
+
case "missing": return;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function getAttributeStaticValueByName(context, element, name) {
|
|
200
|
+
return getAttributeStaticValue(context, getAttributeValueByName(element, name));
|
|
240
201
|
}
|
|
241
202
|
// src/text.ts
|
|
242
203
|
function collapseMultilineText(text) {
|
|
@@ -259,38 +220,33 @@ function collapseMultilineText(text) {
|
|
|
259
220
|
}
|
|
260
221
|
return str === "" ? null : str;
|
|
261
222
|
}
|
|
262
|
-
|
|
263
|
-
if (node.type !== AST_NODE_TYPES.JSXText) return false;
|
|
264
|
-
return collapseMultilineText(node.value) == null && node.value.includes("\n");
|
|
265
|
-
}
|
|
223
|
+
// src/children.ts
|
|
266
224
|
function isWhitespaceText(node) {
|
|
267
|
-
|
|
268
|
-
|
|
225
|
+
return node?.type === AST_NODE_TYPES.JSXText && node.raw.trim() === "";
|
|
226
|
+
}
|
|
227
|
+
function isPaddingWhitespace(node) {
|
|
228
|
+
return node?.type === AST_NODE_TYPES.JSXText && collapseMultilineText(node.value) == null && /[\r\n]/u.test(node.value);
|
|
269
229
|
}
|
|
270
230
|
function isEmptyExpressionContainer(node) {
|
|
271
|
-
|
|
272
|
-
return node.expression.type === AST_NODE_TYPES.JSXEmptyExpression;
|
|
231
|
+
return node?.type === AST_NODE_TYPES.JSXExpressionContainer && node.expression.type === AST_NODE_TYPES.JSXEmptyExpression;
|
|
273
232
|
}
|
|
274
233
|
function isEmptyStringExpression(node) {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
234
|
+
return node?.type === AST_NODE_TYPES.JSXExpressionContainer && node.expression.type === AST_NODE_TYPES.Literal && node.expression.value === "";
|
|
235
|
+
}
|
|
236
|
+
const isEmptyExpression = or(isEmptyExpressionContainer, isEmptyStringExpression);
|
|
237
|
+
const isMeaningfulContent = and(not(isWhitespaceText), not(isEmptyExpression));
|
|
238
|
+
const isNonPaddingContent = and(not(isPaddingWhitespace), not(isEmptyExpression));
|
|
239
|
+
function isMeaningfulChild(node) {
|
|
240
|
+
return isMeaningfulContent(node);
|
|
279
241
|
}
|
|
280
|
-
// src/children.ts
|
|
281
242
|
function getChildren(element) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (isEmptyStringExpression(child)) continue;
|
|
287
|
-
children.push(child);
|
|
288
|
-
}
|
|
289
|
-
return children;
|
|
243
|
+
return element.children.filter(isNonPaddingContent);
|
|
244
|
+
}
|
|
245
|
+
function getMeaningfulChildren(element) {
|
|
246
|
+
return element.children.filter(isMeaningfulChild);
|
|
290
247
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
293
|
-
return !element.children.every(or(or(isWhitespaceText, isEmptyExpressionContainer), isEmptyStringExpression));
|
|
248
|
+
function hasMeaningfulChildren(element) {
|
|
249
|
+
return element.children.some(isMeaningfulChild);
|
|
294
250
|
}
|
|
295
251
|
// src/create-element.ts
|
|
296
252
|
function isCreateElementCall(context, node) {
|
|
@@ -298,33 +254,47 @@ function isCreateElementCall(context, node) {
|
|
|
298
254
|
const name = Extract.getFullyQualifiedName(Extract.unwrap(node.callee), getText(context));
|
|
299
255
|
return name === "createElement" || name.endsWith(".createElement");
|
|
300
256
|
}
|
|
301
|
-
function
|
|
302
|
-
if (!isCreateElementCall(context, node)) return null;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
257
|
+
function parseCreateElementCall(context, node) {
|
|
258
|
+
if (node?.type !== AST_NODE_TYPES.CallExpression || !isCreateElementCall(context, node)) return null;
|
|
259
|
+
const propsArgument = node.arguments[1] ?? null;
|
|
260
|
+
const propsExpression = propsArgument == null ? null : Extract.unwrap(propsArgument);
|
|
261
|
+
return {
|
|
262
|
+
childrenArguments: node.arguments.slice(2),
|
|
263
|
+
node,
|
|
264
|
+
propsArgument,
|
|
265
|
+
propsObject: propsExpression?.type === AST_NODE_TYPES.ObjectExpression ? propsExpression : null,
|
|
266
|
+
typeArgument: node.arguments[0] ?? null
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
function getStaticPropertyName(context, property) {
|
|
270
|
+
const key = Extract.unwrap(property.key);
|
|
271
|
+
if (!property.computed) {
|
|
272
|
+
if (Check.isIdentifier(key)) return key.name;
|
|
273
|
+
if (key.type === AST_NODE_TYPES.Literal && typeof key.value === "string") return key.value;
|
|
274
|
+
if (key.type === AST_NODE_TYPES.TemplateLiteral && key.expressions.length === 0) return key.quasis[0]?.value.cooked ?? key.quasis[0]?.value.raw ?? null;
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
const staticValue = getStaticValue(key, context.sourceCode.getScope(key));
|
|
278
|
+
return typeof staticValue?.value === "string" ? staticValue.value : null;
|
|
279
|
+
}
|
|
280
|
+
function findCreateElementProp(context, call, name) {
|
|
281
|
+
if (call?.propsObject == null) return null;
|
|
282
|
+
const { properties } = call.propsObject;
|
|
283
|
+
for (let i = properties.length - 1; i >= 0; i--) {
|
|
284
|
+
const property = properties[i];
|
|
285
|
+
if (property?.type === AST_NODE_TYPES.Property && getStaticPropertyName(context, property) === name) return property;
|
|
286
|
+
}
|
|
320
287
|
return null;
|
|
321
288
|
}
|
|
322
289
|
function isCreateElementChildrenArgument(context, node) {
|
|
290
|
+
if (node == null) return false;
|
|
323
291
|
let parent = node.parent;
|
|
324
|
-
while (Check.
|
|
325
|
-
|
|
292
|
+
while (Check.isTypeOrChainExpression(parent)) parent = parent.parent;
|
|
293
|
+
const target = Extract.unwrap(node);
|
|
294
|
+
return parent?.type === AST_NODE_TYPES.CallExpression && isCreateElementCall(context, parent) && parent.arguments.slice(2).some((arg) => Extract.unwrap(arg) === target);
|
|
326
295
|
}
|
|
327
296
|
function isInsideCreateElementProps(context, node) {
|
|
297
|
+
if (node == null) return false;
|
|
328
298
|
const call = Traverse.findParent(node, (parent) => isCreateElementCall(context, parent));
|
|
329
299
|
if (call == null) return false;
|
|
330
300
|
const prop = Traverse.findParent(node, Check.isObjectExpression);
|
|
@@ -333,40 +303,40 @@ function isInsideCreateElementProps(context, node) {
|
|
|
333
303
|
if (propsArg == null) return false;
|
|
334
304
|
return prop === Extract.unwrap(propsArg);
|
|
335
305
|
}
|
|
336
|
-
// src/element
|
|
306
|
+
// src/element.ts
|
|
337
307
|
function getElementFullType(node) {
|
|
338
308
|
if (node.type === AST_NODE_TYPES.JSXFragment) return "";
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
default: return getQualifiedName(node.object) + "." + getQualifiedName(node.property);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
return getQualifiedName(node.openingElement.name);
|
|
309
|
+
return Extract.getJSXName(node.openingElement.name);
|
|
310
|
+
}
|
|
311
|
+
function getSelfName(name) {
|
|
312
|
+
return name.slice(name.lastIndexOf(".") + 1);
|
|
347
313
|
}
|
|
348
314
|
function getElementSelfType(node) {
|
|
349
|
-
return getElementFullType(node)
|
|
315
|
+
return getSelfName(getElementFullType(node));
|
|
316
|
+
}
|
|
317
|
+
function isElementTestFunction(test) {
|
|
318
|
+
return isFunction(test);
|
|
350
319
|
}
|
|
351
|
-
// src/element-is.ts
|
|
352
320
|
function isElement(node, test) {
|
|
353
321
|
if (node == null) return false;
|
|
354
322
|
if (node.type !== AST_NODE_TYPES.JSXElement && node.type !== AST_NODE_TYPES.JSXFragment) return false;
|
|
355
323
|
if (test == null) return true;
|
|
356
324
|
const type = getElementFullType(node);
|
|
357
|
-
|
|
325
|
+
if (isString(test)) return type === test;
|
|
326
|
+
if (isElementTestFunction(test)) return test(type, node);
|
|
327
|
+
return test.includes(type);
|
|
358
328
|
}
|
|
359
329
|
function isFragmentElement(node, jsxFragmentFactory) {
|
|
330
|
+
if (node == null) return false;
|
|
360
331
|
if (node.type === AST_NODE_TYPES.JSXFragment) return true;
|
|
361
332
|
if (node.type !== AST_NODE_TYPES.JSXElement) return false;
|
|
362
|
-
|
|
363
|
-
return getElementFullType(node).split(".").at(-1) === fragment;
|
|
333
|
+
return getElementSelfType(node) === getSelfName(jsxFragmentFactory);
|
|
364
334
|
}
|
|
365
335
|
function isHostElement(node) {
|
|
366
|
-
if (node
|
|
336
|
+
if (node?.type !== AST_NODE_TYPES.JSXElement) return false;
|
|
367
337
|
const name = node.openingElement.name;
|
|
368
338
|
if (name.type === AST_NODE_TYPES.JSXIdentifier) return /^[a-z]/u.test(name.name);
|
|
369
339
|
if (name.type === AST_NODE_TYPES.JSXNamespacedName) return /^[a-z]/u.test(name.name.name);
|
|
370
340
|
return false;
|
|
371
341
|
}
|
|
372
|
-
export { collapseMultilineText, findAttribute,
|
|
342
|
+
export { collapseMultilineText, findAttribute, findCreateElementProp, findParentAttribute, getAttributeName, getAttributeStaticValue, getAttributeStaticValueByName, getAttributeValue, getAttributeValueByName, getChildren, getElementFullType, getElementSelfType, getMeaningfulChildren, hasAnyAttribute, hasAttribute, hasEveryAttribute, hasMeaningfulChildren, isAttributeNamed, isCreateElementCall, isCreateElementChildrenArgument, isElement, isEmptyExpressionContainer, isEmptyStringExpression, isFragmentElement, isHostElement, isInsideCreateElementProps, isMeaningfulChild, isPaddingWhitespace, isPlainAttribute, isWhitespaceText, parseCreateElementCall };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "5.30.0-beta.
|
|
3
|
+
"version": "5.30.0-beta.21",
|
|
4
4
|
"description": "ESLint React's TSESTree JSX utility module for static analysis of JSX patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,12 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.30.0-beta.
|
|
33
|
-
"@eslint-react/eslint": "5.30.0-beta.
|
|
34
|
-
"@eslint
|
|
35
|
-
"@typescript-eslint/
|
|
36
|
-
"@typescript-eslint/utils": "^8.72.0",
|
|
37
|
-
"ts-pattern": "^5.9.2"
|
|
32
|
+
"@eslint-react/ast": "5.30.0-beta.21",
|
|
33
|
+
"@eslint-react/eslint": "5.30.0-beta.21",
|
|
34
|
+
"@typescript-eslint/types": "^8.72.1",
|
|
35
|
+
"@typescript-eslint/utils": "^8.72.1"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"@local/configs": "0.0.0",
|
|
@@ -42,8 +40,8 @@
|
|
|
42
40
|
"@local/testkit": "0.0.0",
|
|
43
41
|
"@tsconfig/node20": "^20.1.10",
|
|
44
42
|
"@types/node": "^20.19.43",
|
|
45
|
-
"eslint": "^10.
|
|
46
|
-
"tsdown": "^0.23.
|
|
43
|
+
"eslint": "^10.14.0",
|
|
44
|
+
"tsdown": "^0.23.4",
|
|
47
45
|
"typescript": "6.0.3"
|
|
48
46
|
},
|
|
49
47
|
"peerDependencies": {
|