@eslint-react/core 1.40.4-next.5 → 1.40.4-next.7
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -392,7 +392,7 @@ var CustomComponentPropSchema = object({
|
|
|
392
392
|
*/
|
|
393
393
|
name: string(),
|
|
394
394
|
/**
|
|
395
|
-
* The name of the prop in the
|
|
395
|
+
* The name of the prop in the host component.
|
|
396
396
|
* @example
|
|
397
397
|
* "href"
|
|
398
398
|
*/
|
|
@@ -419,13 +419,13 @@ var CustomComponentSchema = object({
|
|
|
419
419
|
*/
|
|
420
420
|
name: string(),
|
|
421
421
|
/**
|
|
422
|
-
* The name of the
|
|
422
|
+
* The name of the host component that the user-defined component represents.
|
|
423
423
|
* @example
|
|
424
424
|
* "a"
|
|
425
425
|
*/
|
|
426
426
|
as: optional(string()),
|
|
427
427
|
/**
|
|
428
|
-
* Attributes mapping between the user-defined component and the
|
|
428
|
+
* Attributes mapping between the user-defined component and the host component.
|
|
429
429
|
* @example
|
|
430
430
|
* `Link` component has a `to` attribute that represents the `href` attribute in the built-in `a` element with a default value of `"/"`.
|
|
431
431
|
*/
|
|
@@ -1001,7 +1001,7 @@ function isValidComponentDefinition(context, node, hint) {
|
|
|
1001
1001
|
if (hint & ComponentDetectionHint.SkipClassProperty && isFunctionOfClassProperty(node.parent)) {
|
|
1002
1002
|
return false;
|
|
1003
1003
|
}
|
|
1004
|
-
if (hint & ComponentDetectionHint.SkipArrayMapArgument && AST6__namespace.
|
|
1004
|
+
if (hint & ComponentDetectionHint.SkipArrayMapArgument && AST6__namespace.isArrayMapCall(node.parent)) {
|
|
1005
1005
|
return false;
|
|
1006
1006
|
}
|
|
1007
1007
|
const boundaryNode = AST6__namespace.findParentNode(
|
package/dist/index.mjs
CHANGED
|
@@ -365,7 +365,7 @@ var CustomComponentPropSchema = object({
|
|
|
365
365
|
*/
|
|
366
366
|
name: string(),
|
|
367
367
|
/**
|
|
368
|
-
* The name of the prop in the
|
|
368
|
+
* The name of the prop in the host component.
|
|
369
369
|
* @example
|
|
370
370
|
* "href"
|
|
371
371
|
*/
|
|
@@ -392,13 +392,13 @@ var CustomComponentSchema = object({
|
|
|
392
392
|
*/
|
|
393
393
|
name: string(),
|
|
394
394
|
/**
|
|
395
|
-
* The name of the
|
|
395
|
+
* The name of the host component that the user-defined component represents.
|
|
396
396
|
* @example
|
|
397
397
|
* "a"
|
|
398
398
|
*/
|
|
399
399
|
as: optional(string()),
|
|
400
400
|
/**
|
|
401
|
-
* Attributes mapping between the user-defined component and the
|
|
401
|
+
* Attributes mapping between the user-defined component and the host component.
|
|
402
402
|
* @example
|
|
403
403
|
* `Link` component has a `to` attribute that represents the `href` attribute in the built-in `a` element with a default value of `"/"`.
|
|
404
404
|
*/
|
|
@@ -974,7 +974,7 @@ function isValidComponentDefinition(context, node, hint) {
|
|
|
974
974
|
if (hint & ComponentDetectionHint.SkipClassProperty && isFunctionOfClassProperty(node.parent)) {
|
|
975
975
|
return false;
|
|
976
976
|
}
|
|
977
|
-
if (hint & ComponentDetectionHint.SkipArrayMapArgument && AST6.
|
|
977
|
+
if (hint & ComponentDetectionHint.SkipArrayMapArgument && AST6.isArrayMapCall(node.parent)) {
|
|
978
978
|
return false;
|
|
979
979
|
}
|
|
980
980
|
const boundaryNode = AST6.findParentNode(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.40.4-next.
|
|
3
|
+
"version": "1.40.4-next.7",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.29.0",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.7.0",
|
|
44
|
-
"@eslint-react/ast": "1.40.4-next.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/var": "1.40.4-next.
|
|
44
|
+
"@eslint-react/ast": "1.40.4-next.7",
|
|
45
|
+
"@eslint-react/jsx": "1.40.4-next.7",
|
|
46
|
+
"@eslint-react/eff": "1.40.4-next.7",
|
|
47
|
+
"@eslint-react/kit": "1.40.4-next.7",
|
|
48
|
+
"@eslint-react/shared": "1.40.4-next.7",
|
|
49
|
+
"@eslint-react/var": "1.40.4-next.7"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"tsup": "^8.4.0",
|