@eslint-react/kit 5.0.1-next.1 → 5.0.1-next.2

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/README.md CHANGED
@@ -296,7 +296,7 @@ All predicates live under `kit.is` — organized into four sub-sections.
296
296
 
297
297
  | Predicate | Signature | Description |
298
298
  | --------------------------- | ------------------------- | --------------------------------------------------------------------------- |
299
- | `componentDefinition` | `(node, hint) -> boolean` | Whether a function node is a component definition. (context pre-bound) |
299
+ | `componentDecl` | `(node, hint) -> boolean` | Whether a function node is a component. (context pre-bound) |
300
300
  | `componentName` | `(name) -> boolean` | Strict PascalCase component name check. |
301
301
  | `componentNameLoose` | `(name) -> boolean` | Loose component name check. |
302
302
  | `componentWrapperCall` | `(node) -> boolean` | Whether a node is a `memo(…)` or `forwardRef(…)` call. (context pre-bound) |
@@ -309,7 +309,7 @@ General hook predicates:
309
309
 
310
310
  | Predicate | Signature | Description |
311
311
  | -------------------------- | ------------------------------------- | ------------------------------------------------------------ |
312
- | `hook` | `(node) -> boolean` | Whether a function node is a hook (by name). |
312
+ | `hookDecl` | `(node) -> boolean` | Whether a function node is a hook (by name). |
313
313
  | `hookCall` | `(node) -> boolean` | Whether a node is a hook call. |
314
314
  | `hookName` | `(name) -> boolean` | Whether a string matches the `use[A-Z]` convention. |
315
315
  | `useEffectLikeCall` | `(node, additionalHooks?) -> boolean` | Whether a node is a `useEffect`/`useLayoutEffect`-like call. |
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { ulid } from "ulid";
5
5
 
6
6
  //#region package.json
7
7
  var name = "@eslint-react/kit";
8
- var version = "5.0.1-next.1";
8
+ var version = "5.0.1-next.2";
9
9
 
10
10
  //#endregion
11
11
  //#region src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/kit",
3
- "version": "5.0.1-next.1",
3
+ "version": "5.0.1-next.2",
4
4
  "description": "ESLint React's utility module for building custom React rules with JavasSript functions.",
5
5
  "keywords": [
6
6
  "react",
@@ -39,9 +39,9 @@
39
39
  "@typescript-eslint/utils": "^8.58.0",
40
40
  "string-ts": "^2.3.1",
41
41
  "ulid": "^3.0.2",
42
- "@eslint-react/ast": "5.0.1-next.1",
43
- "@eslint-react/core": "5.0.1-next.1",
44
- "@eslint-react/shared": "5.0.1-next.1"
42
+ "@eslint-react/ast": "5.0.1-next.2",
43
+ "@eslint-react/core": "5.0.1-next.2",
44
+ "@eslint-react/shared": "5.0.1-next.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "eslint": "^10.2.0",