@eslint-react/kit 5.0.1-beta.0 → 5.0.1-beta.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 +2 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
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
|
-
| `
|
|
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
|
-
| `
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "5.0.1-beta.
|
|
3
|
+
"version": "5.0.1-beta.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/
|
|
43
|
-
"@eslint-react/shared": "5.0.1-beta.
|
|
44
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/core": "5.0.1-beta.2",
|
|
43
|
+
"@eslint-react/shared": "5.0.1-beta.2",
|
|
44
|
+
"@eslint-react/ast": "5.0.1-beta.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"eslint": "^10.2.0",
|