@eslint-react/core 1.26.3-next.2 → 1.26.3-next.20

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.mts CHANGED
@@ -24,11 +24,29 @@ type ERComponentHint = bigint;
24
24
  * hints for component collector
25
25
  */
26
26
  declare const ERComponentHint: {
27
+ /**
28
+ * Skip function component created by React.memo
29
+ */
27
30
  readonly SkipMemo: bigint;
31
+ /**
32
+ * Skip function component created by React.forwardRef
33
+ */
28
34
  readonly SkipForwardRef: bigint;
35
+ /**
36
+ * Skip function component defined in map function callback
37
+ */
29
38
  readonly SkipMapCallback: bigint;
39
+ /**
40
+ * Skip function component defined on object method
41
+ */
30
42
  readonly SkipObjectMethod: bigint;
43
+ /**
44
+ * Skip function component defined on class method
45
+ */
31
46
  readonly SkipClassMethod: bigint;
47
+ /**
48
+ * Skip function component defined on class property
49
+ */
32
50
  readonly SkipClassProperty: bigint;
33
51
  readonly None: 0n;
34
52
  readonly SkipUndefined: bigint;
@@ -51,8 +69,8 @@ declare const ERComponentFlag: {
51
69
  PureComponent: bigint;
52
70
  CreateElement: bigint;
53
71
  Memo: bigint;
54
- Async: bigint;
55
72
  ForwardRef: bigint;
73
+ Async: bigint;
56
74
  };
57
75
 
58
76
  interface ERFunctionComponent extends ERSemanticNode {
@@ -2368,7 +2386,7 @@ declare interface WithStatement extends BaseNode {
2368
2386
  }
2369
2387
  declare interface YieldExpression extends BaseNode {
2370
2388
  type: AST_NODE_TYPES.YieldExpression;
2371
- argument: Expression | undefined;
2389
+ argument: Expression | null;
2372
2390
  delegate: boolean;
2373
2391
  }
2374
2392
 
package/dist/index.d.ts CHANGED
@@ -24,11 +24,29 @@ type ERComponentHint = bigint;
24
24
  * hints for component collector
25
25
  */
26
26
  declare const ERComponentHint: {
27
+ /**
28
+ * Skip function component created by React.memo
29
+ */
27
30
  readonly SkipMemo: bigint;
31
+ /**
32
+ * Skip function component created by React.forwardRef
33
+ */
28
34
  readonly SkipForwardRef: bigint;
35
+ /**
36
+ * Skip function component defined in map function callback
37
+ */
29
38
  readonly SkipMapCallback: bigint;
39
+ /**
40
+ * Skip function component defined on object method
41
+ */
30
42
  readonly SkipObjectMethod: bigint;
43
+ /**
44
+ * Skip function component defined on class method
45
+ */
31
46
  readonly SkipClassMethod: bigint;
47
+ /**
48
+ * Skip function component defined on class property
49
+ */
32
50
  readonly SkipClassProperty: bigint;
33
51
  readonly None: 0n;
34
52
  readonly SkipUndefined: bigint;
@@ -51,8 +69,8 @@ declare const ERComponentFlag: {
51
69
  PureComponent: bigint;
52
70
  CreateElement: bigint;
53
71
  Memo: bigint;
54
- Async: bigint;
55
72
  ForwardRef: bigint;
73
+ Async: bigint;
56
74
  };
57
75
 
58
76
  interface ERFunctionComponent extends ERSemanticNode {
@@ -2368,7 +2386,7 @@ declare interface WithStatement extends BaseNode {
2368
2386
  }
2369
2387
  declare interface YieldExpression extends BaseNode {
2370
2388
  type: AST_NODE_TYPES.YieldExpression;
2371
- argument: Expression | undefined;
2389
+ argument: Expression | null;
2372
2390
  delegate: boolean;
2373
2391
  }
2374
2392
 
package/dist/index.js CHANGED
@@ -316,22 +316,36 @@ function useHookCollector() {
316
316
  return { ctx, listeners };
317
317
  }
318
318
  var ERComponentHint = {
319
+ /**
320
+ * 1n << 0n - 1n << 63n are reserved for JSXValueHint
321
+ */
319
322
  ...JSX3__namespace.JSXValueHint,
320
- // 1n << 0n - 1n << 63n are reserved for JSXValueHint
321
- // Skip function component created by React.memo
323
+ /**
324
+ * Skip function component created by React.memo
325
+ */
322
326
  SkipMemo: 1n << 64n,
323
- // Skip function component created by React.forwardRef
327
+ /**
328
+ * Skip function component created by React.forwardRef
329
+ */
324
330
  SkipForwardRef: 1n << 65n,
325
- // Skip function component defined in map function callback
331
+ /**
332
+ * Skip function component defined in map function callback
333
+ */
326
334
  SkipMapCallback: 1n << 66n,
327
- // Skip function component defined on object method
335
+ /**
336
+ * Skip function component defined on object method
337
+ */
328
338
  SkipObjectMethod: 1n << 67n,
329
- // Skip function component defined on class method
339
+ /**
340
+ * Skip function component defined on class method
341
+ */
330
342
  SkipClassMethod: 1n << 68n,
331
- // Skip function component defined on class property
343
+ /**
344
+ * Skip function component defined on class property
345
+ */
332
346
  SkipClassProperty: 1n << 69n
333
347
  };
334
- var DEFAULT_COMPONENT_HINT = 0n | ERComponentHint.SkipBooleanLiteral | ERComponentHint.SkipMapCallback | ERComponentHint.SkipNumberLiteral | ERComponentHint.SkipStringLiteral | ERComponentHint.SkipUndefined | ERComponentHint.SkipEmptyArray | ERComponentHint.StrictArray | ERComponentHint.StrictConditional | ERComponentHint.StrictLogical;
348
+ var DEFAULT_COMPONENT_HINT = 0n | ERComponentHint.SkipBooleanLiteral | ERComponentHint.SkipEmptyArray | ERComponentHint.SkipMapCallback | ERComponentHint.SkipNumberLiteral | ERComponentHint.SkipStringLiteral | ERComponentHint.SkipUndefined | ERComponentHint.StrictArray | ERComponentHint.StrictConditional | ERComponentHint.StrictLogical;
335
349
  var COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
336
350
  "AssignmentExpression",
337
351
  "[type]",
@@ -350,8 +364,8 @@ var ERComponentFlag = {
350
364
  PureComponent: 1n << 0n,
351
365
  CreateElement: 1n << 1n,
352
366
  Memo: 1n << 2n,
353
- Async: 1n << 3n,
354
- ForwardRef: 1n << 4n
367
+ ForwardRef: 1n << 3n,
368
+ Async: 1n << 4n
355
369
  };
356
370
  function isComponentWrapperCall(node, context) {
357
371
  if (node.type !== types.AST_NODE_TYPES.CallExpression) {
package/dist/index.mjs CHANGED
@@ -289,22 +289,36 @@ function useHookCollector() {
289
289
  return { ctx, listeners };
290
290
  }
291
291
  var ERComponentHint = {
292
+ /**
293
+ * 1n << 0n - 1n << 63n are reserved for JSXValueHint
294
+ */
292
295
  ...JSX3.JSXValueHint,
293
- // 1n << 0n - 1n << 63n are reserved for JSXValueHint
294
- // Skip function component created by React.memo
296
+ /**
297
+ * Skip function component created by React.memo
298
+ */
295
299
  SkipMemo: 1n << 64n,
296
- // Skip function component created by React.forwardRef
300
+ /**
301
+ * Skip function component created by React.forwardRef
302
+ */
297
303
  SkipForwardRef: 1n << 65n,
298
- // Skip function component defined in map function callback
304
+ /**
305
+ * Skip function component defined in map function callback
306
+ */
299
307
  SkipMapCallback: 1n << 66n,
300
- // Skip function component defined on object method
308
+ /**
309
+ * Skip function component defined on object method
310
+ */
301
311
  SkipObjectMethod: 1n << 67n,
302
- // Skip function component defined on class method
312
+ /**
313
+ * Skip function component defined on class method
314
+ */
303
315
  SkipClassMethod: 1n << 68n,
304
- // Skip function component defined on class property
316
+ /**
317
+ * Skip function component defined on class property
318
+ */
305
319
  SkipClassProperty: 1n << 69n
306
320
  };
307
- var DEFAULT_COMPONENT_HINT = 0n | ERComponentHint.SkipBooleanLiteral | ERComponentHint.SkipMapCallback | ERComponentHint.SkipNumberLiteral | ERComponentHint.SkipStringLiteral | ERComponentHint.SkipUndefined | ERComponentHint.SkipEmptyArray | ERComponentHint.StrictArray | ERComponentHint.StrictConditional | ERComponentHint.StrictLogical;
321
+ var DEFAULT_COMPONENT_HINT = 0n | ERComponentHint.SkipBooleanLiteral | ERComponentHint.SkipEmptyArray | ERComponentHint.SkipMapCallback | ERComponentHint.SkipNumberLiteral | ERComponentHint.SkipStringLiteral | ERComponentHint.SkipUndefined | ERComponentHint.StrictArray | ERComponentHint.StrictConditional | ERComponentHint.StrictLogical;
308
322
  var COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
309
323
  "AssignmentExpression",
310
324
  "[type]",
@@ -323,8 +337,8 @@ var ERComponentFlag = {
323
337
  PureComponent: 1n << 0n,
324
338
  CreateElement: 1n << 1n,
325
339
  Memo: 1n << 2n,
326
- Async: 1n << 3n,
327
- ForwardRef: 1n << 4n
340
+ ForwardRef: 1n << 3n,
341
+ Async: 1n << 4n
328
342
  };
329
343
  function isComponentWrapperCall(node, context) {
330
344
  if (node.type !== AST_NODE_TYPES.CallExpression) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.26.3-next.2",
3
+ "version": "1.26.3-next.20",
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,21 +35,21 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.23.0",
39
- "@typescript-eslint/type-utils": "^8.23.0",
40
- "@typescript-eslint/types": "^8.23.0",
41
- "@typescript-eslint/utils": "^8.23.0",
38
+ "@typescript-eslint/scope-manager": "^8.24.1",
39
+ "@typescript-eslint/type-utils": "^8.24.1",
40
+ "@typescript-eslint/types": "^8.24.1",
41
+ "@typescript-eslint/utils": "^8.24.1",
42
42
  "birecord": "^0.1.1",
43
43
  "ts-pattern": "^5.6.2",
44
- "@eslint-react/ast": "1.26.3-next.2",
45
- "@eslint-react/eff": "1.26.3-next.2",
46
- "@eslint-react/jsx": "1.26.3-next.2",
47
- "@eslint-react/shared": "1.26.3-next.2",
48
- "@eslint-react/var": "1.26.3-next.2"
44
+ "@eslint-react/ast": "1.26.3-next.20",
45
+ "@eslint-react/jsx": "1.26.3-next.20",
46
+ "@eslint-react/eff": "1.26.3-next.20",
47
+ "@eslint-react/shared": "1.26.3-next.20",
48
+ "@eslint-react/var": "1.26.3-next.20"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsup": "^8.3.6",
52
- "@workspace/configs": "0.0.0"
52
+ "@local/configs": "0.0.0"
53
53
  },
54
54
  "engines": {
55
55
  "bun": ">=1.0.15",
@@ -59,6 +59,6 @@
59
59
  "build": "tsup",
60
60
  "build:docs": "typedoc",
61
61
  "lint:publish": "publint",
62
- "lint:type": "tsc --noEmit"
62
+ "lint:ts": "tsc --noEmit"
63
63
  }
64
64
  }