@eslint-react/core 4.0.2-beta.4 → 4.0.2-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.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
- /** Indicates the component creates elements using `createElement` instead of JSX */CreateElement: bigint; /** Indicates the component forwards a ref (ex: React.forwardRef) */
394
- ForwardRef: bigint; /** Indicates the component is memoized (ex: React.memo) */
395
- Memo: bigint; /** No flags set */
396
- None: bigint; /** Indicates the component is a pure component (ex: extends PureComponent) */
397
- PureComponent: bigint;
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
- None: 0n,
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.4",
3
+ "version": "4.0.2-beta.5",
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,15 +34,15 @@
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.4",
38
- "@eslint-react/shared": "4.0.2-beta.4",
39
- "@eslint-react/var": "4.0.2-beta.4",
40
- "@eslint-react/jsx": "4.0.2-beta.4"
37
+ "@eslint-react/ast": "4.0.2-beta.5",
38
+ "@eslint-react/jsx": "4.0.2-beta.5",
39
+ "@eslint-react/shared": "4.0.2-beta.5",
40
+ "@eslint-react/var": "4.0.2-beta.5"
41
41
  },
42
42
  "devDependencies": {
43
43
  "tsdown": "^0.21.7",
44
- "@local/configs": "0.0.0",
45
- "@local/eff": "3.0.0-beta.72"
44
+ "@local/eff": "3.0.0-beta.72",
45
+ "@local/configs": "0.0.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "eslint": "^10.0.0",