@eslint-react/core 4.0.2-beta.4 → 4.0.2-beta.6
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 +5 -5
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -390,11 +390,11 @@ declare function isAssignmentToThisState(node: TSESTree.AssignmentExpression): b
|
|
|
390
390
|
* Component flag constants
|
|
391
391
|
*/
|
|
392
392
|
declare const ComponentFlag: {
|
|
393
|
-
/**
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
393
|
+
/** No flags set */None: bigint; /** Indicates the component is a pure component (ex: extends PureComponent) */
|
|
394
|
+
PureComponent: bigint; /** Indicates the component creates elements using `createElement` instead of JSX */
|
|
395
|
+
CreateElement: bigint; /** Indicates the component is memoized (ex: React.memo) */
|
|
396
|
+
Memo: bigint; /** Indicates the component forwards a ref (ex: React.forwardRef) */
|
|
397
|
+
ForwardRef: bigint;
|
|
398
398
|
};
|
|
399
399
|
/**
|
|
400
400
|
* Get component flag from init path
|
package/dist/index.js
CHANGED
|
@@ -822,11 +822,11 @@ function isComponentDefinition(context, node, hint) {
|
|
|
822
822
|
* Component flag constants
|
|
823
823
|
*/
|
|
824
824
|
const ComponentFlag = {
|
|
825
|
+
None: 0n,
|
|
826
|
+
PureComponent: 1n << 0n,
|
|
825
827
|
CreateElement: 1n << 1n,
|
|
826
|
-
ForwardRef: 1n << 3n,
|
|
827
828
|
Memo: 1n << 2n,
|
|
828
|
-
|
|
829
|
-
PureComponent: 1n << 0n
|
|
829
|
+
ForwardRef: 1n << 3n
|
|
830
830
|
};
|
|
831
831
|
/**
|
|
832
832
|
* Get component flag from init path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "4.0.2-beta.
|
|
3
|
+
"version": "4.0.2-beta.6",
|
|
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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@typescript-eslint/types": "^8.57.2",
|
|
35
35
|
"@typescript-eslint/utils": "^8.57.2",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "4.0.2-beta.
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/var": "4.0.2-beta.
|
|
40
|
-
"@eslint-react/
|
|
37
|
+
"@eslint-react/ast": "4.0.2-beta.6",
|
|
38
|
+
"@eslint-react/jsx": "4.0.2-beta.6",
|
|
39
|
+
"@eslint-react/var": "4.0.2-beta.6",
|
|
40
|
+
"@eslint-react/shared": "4.0.2-beta.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.21.7",
|