@eslint-react/eslint 5.17.3 → 5.18.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
@@ -3,26 +3,27 @@ import * as tseslint from "@typescript-eslint/utils/ts-eslint";
3
3
  import { ReportFixFunction, RuleFix, RuleFixer, RuleListener, RuleListener as RuleListener$1 } from "@typescript-eslint/utils/ts-eslint";
4
4
  //#region src/types.d.ts
5
5
  /**
6
- * Rule context.
6
+ * Represents the ESLint rule context.
7
7
  * @since 0.0.1
8
8
  */
9
9
  type RuleContext<MessageIds extends string = string, Options extends readonly unknown[] = readonly unknown[]> = tseslint.RuleContext<MessageIds, Options>;
10
10
  /**
11
- * Rule feature.
11
+ * Represents the feature of a rule.
12
12
  * @since 1.20.0
13
13
  */
14
14
  type RuleFeature = "CFG" | "DBG" | "FIX" | "MOD" | "TSC" | "EXP";
15
15
  //#endregion
16
16
  //#region src/utils.d.ts
17
+ /** The rule creator that generates documentation URLs for ESLint React rules. */
17
18
  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> & {
18
19
  name: string;
19
20
  };
20
21
  /**
21
- * Merges multiple visitor objects into a single visitor object.
22
+ * Merge multiple visitor objects into a single visitor object.
22
23
  *
23
- * @param base Base visitor object (target of merge).
24
- * @param rest Additional visitor objects to merge (one or more).
25
- * @returns Merged visitor object.
24
+ * @param base The base visitor object (target of merge).
25
+ * @param rest The additional visitor objects to merge (one or more).
26
+ * @returns The merged visitor object.
26
27
  *
27
28
  * @example
28
29
  * ```typescript
package/dist/index.js CHANGED
@@ -4,13 +4,14 @@ import { ESLintUtils } from "@typescript-eslint/utils";
4
4
  function getDocsUrl(ruleName) {
5
5
  return `https://eslint-react.xyz/docs/rules/${ruleName}`;
6
6
  }
7
+ /** The rule creator that generates documentation URLs for ESLint React rules. */
7
8
  const createRule = ESLintUtils.RuleCreator(getDocsUrl);
8
9
  /**
9
- * Merges multiple visitor objects into a single visitor object.
10
+ * Merge multiple visitor objects into a single visitor object.
10
11
  *
11
- * @param base Base visitor object (target of merge).
12
- * @param rest Additional visitor objects to merge (one or more).
13
- * @returns Merged visitor object.
12
+ * @param base The base visitor object (target of merge).
13
+ * @param rest The additional visitor objects to merge (one or more).
14
+ * @returns The merged visitor object.
14
15
  *
15
16
  * @example
16
17
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint",
3
- "version": "5.17.3",
3
+ "version": "5.18.1",
4
4
  "description": "ESLint React's ESLint types and utils.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -29,13 +29,13 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@typescript-eslint/utils": "^8.64.0"
32
+ "@typescript-eslint/utils": "^8.65.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@tsconfig/node24": "^24.0.4",
36
- "@types/node": "^26.1.1",
37
- "eslint": "^10.7.0",
38
- "tsdown": "^0.22.9",
36
+ "@types/node": "^26.1.2",
37
+ "eslint": "^10.8.0",
38
+ "tsdown": "^0.22.14",
39
39
  "typescript": "6.0.3",
40
40
  "@local/configs": "0.0.0"
41
41
  },