@eslint-react/kit 5.5.0-next.1 → 5.5.1-next.0

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
@@ -1,4 +1,4 @@
1
- import { TSESTreeFunction, TSESTreeTypeExpression } from "@eslint-react/ast";
1
+ import { TSESTreeFunction, TSESTreeTypeExpression, Traverse } from "@eslint-react/ast";
2
2
  import * as core from "@eslint-react/core";
3
3
  import { ESLintReactSettingsNormalized } from "@eslint-react/shared";
4
4
  import { ESLintUtils } from "@typescript-eslint/utils";
@@ -2364,6 +2364,7 @@ interface CollectorWithContext<T> extends Collector<T> {
2364
2364
  }
2365
2365
  interface RuleToolkit {
2366
2366
  ast: {
2367
+ findParent: typeof Traverse.findParent;
2367
2368
  unwrap(node: Node): Exclude<Node, TSESTreeTypeExpression>;
2368
2369
  };
2369
2370
  collect: {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Extract } from "@eslint-react/ast";
1
+ import { Extract, Traverse } from "@eslint-react/ast";
2
2
  import * as core from "@eslint-react/core";
3
3
  import { getSettingsFromContext } from "@eslint-react/shared";
4
4
  import { randomBytes } from "node:crypto";
@@ -7,7 +7,7 @@ import { ESLintUtils } from "@typescript-eslint/utils";
7
7
 
8
8
  //#region package.json
9
9
  var name = "@eslint-react/kit";
10
- var version = "5.5.0-next.1";
10
+ var version = "5.5.1-next.0";
11
11
 
12
12
  //#endregion
13
13
  //#region ../eslint/dist/index.js
@@ -45,7 +45,10 @@ function merge(base, ...rest) {
45
45
  //#region src/index.ts
46
46
  function makeRuleToolkit(context) {
47
47
  return {
48
- ast: { unwrap: Extract.unwrap },
48
+ ast: {
49
+ findParent: Traverse.findParent,
50
+ unwrap: Extract.unwrap
51
+ },
49
52
  collect: {
50
53
  components(context, options) {
51
54
  const { api, visitor } = core.getFunctionComponentCollector(context, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/kit",
3
- "version": "5.5.0-next.1",
3
+ "version": "5.5.1-next.0",
4
4
  "description": "ESLint React's utility module for building custom React rules with JavaScript functions.",
5
5
  "keywords": [
6
6
  "react",
@@ -38,16 +38,16 @@
38
38
  "dependencies": {
39
39
  "@typescript-eslint/utils": "^8.59.0",
40
40
  "string-ts": "^2.3.1",
41
- "@eslint-react/ast": "5.5.0-next.1",
42
- "@eslint-react/shared": "5.5.0-next.1",
43
- "@eslint-react/core": "5.5.0-next.1"
41
+ "@eslint-react/ast": "5.5.1-next.0",
42
+ "@eslint-react/core": "5.5.1-next.0",
43
+ "@eslint-react/shared": "5.5.1-next.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "eslint": "^10.2.1",
47
47
  "tsdown": "^0.21.10",
48
- "@eslint-react/eslint": "5.5.0-next.1",
49
- "@local/eff": "3.0.0-beta.72",
50
- "@local/configs": "0.0.0"
48
+ "@eslint-react/eslint": "5.5.1-next.0",
49
+ "@local/configs": "0.0.0",
50
+ "@local/eff": "3.0.0-beta.72"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "eslint": "^10.2.1",