@eslint-react/core 1.47.3-next.0 → 1.47.4-beta.0
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 +3 -3
- package/dist/index.mjs +4 -4
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1699,10 +1699,10 @@ function getComponentFlagFromInitPath(initPath) {
|
|
|
1699
1699
|
return flag;
|
|
1700
1700
|
}
|
|
1701
1701
|
function isComponentName(name) {
|
|
1702
|
-
return kit.
|
|
1702
|
+
return kit.RegExp.COMPONENT_NAME.test(name);
|
|
1703
1703
|
}
|
|
1704
1704
|
function isComponentNameLoose(name) {
|
|
1705
|
-
return kit.
|
|
1705
|
+
return kit.RegExp.COMPONENT_NAME_LOOSE.test(name);
|
|
1706
1706
|
}
|
|
1707
1707
|
function getComponentNameFromId(id) {
|
|
1708
1708
|
if (id == null) return eff._;
|
|
@@ -1778,7 +1778,7 @@ function useComponentCollector(context, options = {}) {
|
|
|
1778
1778
|
});
|
|
1779
1779
|
},
|
|
1780
1780
|
...collectDisplayName ? {
|
|
1781
|
-
[kit.
|
|
1781
|
+
[kit.Selector.DISPLAY_NAME_ASSIGNMENT_EXPRESSION](node) {
|
|
1782
1782
|
const { left, right } = node;
|
|
1783
1783
|
if (left.type !== types.AST_NODE_TYPES.MemberExpression) return;
|
|
1784
1784
|
const componentName = left.object.type === types.AST_NODE_TYPES.Identifier ? left.object.name : eff._;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AST8 from '@eslint-react/ast';
|
|
2
2
|
import { flip, dual, constFalse, identity, constTrue, _ } from '@eslint-react/eff';
|
|
3
|
-
import {
|
|
3
|
+
import { RegExp as RegExp$1, Selector } from '@eslint-react/kit';
|
|
4
4
|
import { DEFAULT_ESLINT_REACT_SETTINGS as DEFAULT_ESLINT_REACT_SETTINGS$1, unsafeDecodeSettings, getId } from '@eslint-react/shared';
|
|
5
5
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
6
6
|
import * as VAR3 from '@eslint-react/var';
|
|
@@ -1673,10 +1673,10 @@ function getComponentFlagFromInitPath(initPath) {
|
|
|
1673
1673
|
return flag;
|
|
1674
1674
|
}
|
|
1675
1675
|
function isComponentName(name) {
|
|
1676
|
-
return
|
|
1676
|
+
return RegExp$1.COMPONENT_NAME.test(name);
|
|
1677
1677
|
}
|
|
1678
1678
|
function isComponentNameLoose(name) {
|
|
1679
|
-
return
|
|
1679
|
+
return RegExp$1.COMPONENT_NAME_LOOSE.test(name);
|
|
1680
1680
|
}
|
|
1681
1681
|
function getComponentNameFromId(id) {
|
|
1682
1682
|
if (id == null) return _;
|
|
@@ -1752,7 +1752,7 @@ function useComponentCollector(context, options = {}) {
|
|
|
1752
1752
|
});
|
|
1753
1753
|
},
|
|
1754
1754
|
...collectDisplayName ? {
|
|
1755
|
-
[
|
|
1755
|
+
[Selector.DISPLAY_NAME_ASSIGNMENT_EXPRESSION](node) {
|
|
1756
1756
|
const { left, right } = node;
|
|
1757
1757
|
if (left.type !== AST_NODE_TYPES.MemberExpression) return;
|
|
1758
1758
|
const componentName = left.object.type === AST_NODE_TYPES.Identifier ? left.object.name : _;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.4-beta.0",
|
|
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": {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
39
|
-
"@typescript-eslint/type-utils": "^8.
|
|
40
|
-
"@typescript-eslint/types": "^8.
|
|
41
|
-
"@typescript-eslint/utils": "^8.
|
|
38
|
+
"@typescript-eslint/scope-manager": "^8.30.1",
|
|
39
|
+
"@typescript-eslint/type-utils": "^8.30.1",
|
|
40
|
+
"@typescript-eslint/types": "^8.30.1",
|
|
41
|
+
"@typescript-eslint/utils": "^8.30.1",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.7.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/shared": "1.47.
|
|
48
|
-
"@eslint-react/var": "1.47.
|
|
44
|
+
"@eslint-react/eff": "1.47.4-beta.0",
|
|
45
|
+
"@eslint-react/kit": "1.47.4-beta.0",
|
|
46
|
+
"@eslint-react/ast": "1.47.4-beta.0",
|
|
47
|
+
"@eslint-react/shared": "1.47.4-beta.0",
|
|
48
|
+
"@eslint-react/var": "1.47.4-beta.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.4.0",
|