@eslint-react/eslint 5.28.8 → 5.30.0-beta.1

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
@@ -4,7 +4,6 @@ import { ParserServicesWithTypeInformation } from "@typescript-eslint/utils";
4
4
  import ts from "typescript";
5
5
  import * as tseslint from "@typescript-eslint/utils/ts-eslint";
6
6
  import { ReportDescriptor, ReportFixFunction, RuleFix, RuleFixer, RuleListener, RuleListener as RuleListener$1 } from "@typescript-eslint/utils/ts-eslint";
7
- //#region src/get-constrained-type-at-location.d.ts
8
7
  /**
9
8
  * Resolves the given node's type. Will return the type's generic constraint, if it has one.
10
9
  *
@@ -20,8 +19,6 @@ import { ReportDescriptor, ReportFixFunction, RuleFix, RuleFixer, RuleListener,
20
19
  * @see https://github.com/typescript-eslint/typescript-eslint/issues/10438
21
20
  */
22
21
  export declare function getConstrainedTypeAtLocation(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Type;
23
- //#endregion
24
- //#region src/types.d.ts
25
22
  /**
26
23
  * Represents the ESLint rule context.
27
24
  * @since 0.0.1
@@ -32,8 +29,6 @@ export type RuleContext<M extends string = string, O extends readonly unknown[]
32
29
  * @since 1.20.0
33
30
  */
34
31
  export type RuleFeature = "CFG" | "DBG" | "FIX" | "MOD" | "TSC" | "EXP";
35
- //#endregion
36
- //#region src/utils.d.ts
37
32
  /** The rule creator that generates documentation URLs for ESLint React rules. */
38
33
  export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
39
34
  name: string;
@@ -70,5 +65,4 @@ export declare function report(context: RuleContext): (desc?: null | ReportDescr
70
65
  * ```
71
66
  */
72
67
  export declare function merge(base: RuleListener$1, ...rest: RuleListener$1[]): RuleListener$1;
73
- //#endregion
74
68
  export type { ReportFixFunction, RuleFix, RuleFixer, RuleListener };
package/dist/index.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import * as ESLintUtils from "@typescript-eslint/utils/eslint-utils";
2
- //#region src/get-constrained-type-at-location.ts
2
+ // src/get-constrained-type-at-location.ts
3
3
  function getConstrainedTypeAtLocation(services, node) {
4
4
  const nodeType = services.getTypeAtLocation(node);
5
5
  return services.program.getTypeChecker().getBaseConstraintOfType(nodeType) ?? nodeType;
6
6
  }
7
- //#endregion
8
- //#region src/utils.ts
7
+ // src/utils.ts
9
8
  function getDocsUrl(ruleName) {
10
9
  return `https://eslint-react.xyz/docs/rules/${ruleName}`;
11
10
  }
@@ -30,5 +29,4 @@ function merge(base, ...rest) {
30
29
  }
31
30
  return base;
32
31
  }
33
- //#endregion
34
32
  export { createRule, getConstrainedTypeAtLocation, getText, merge, report };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint",
3
- "version": "5.28.8",
3
+ "version": "5.30.0-beta.1",
4
4
  "description": "ESLint React's ESLint types and utils.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -37,7 +37,7 @@
37
37
  "@tsconfig/node20": "^20.1.10",
38
38
  "@types/node": "^20.19.43",
39
39
  "eslint": "^10.13.0",
40
- "tsdown": "^0.23.1",
40
+ "tsdown": "^0.23.2",
41
41
  "typescript": "6.0.3"
42
42
  },
43
43
  "peerDependencies": {