eslint-plugin-function 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -9
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { AST_NODE_TYPES } from "@typescript-eslint/types";
9
9
 
10
10
  //#region package.json
11
11
  var name = "eslint-plugin-function";
12
- var version = "0.2.9";
12
+ var version = "0.4.0";
13
13
 
14
14
  //#endregion
15
15
  //#region src/utils/create-rule.ts
@@ -276,14 +276,17 @@ var function_return_boolean_default = createRule({
276
276
  [Symbol.for("rule_features")]: RULE_FEATURES
277
277
  },
278
278
  messages: { functionReturnBoolean: "The function '{{functionName}}' should return a boolean value (got {{variants}})." },
279
- schema: [{
280
- type: "object",
281
- additionalProperties: false,
282
- properties: { pattern: {
283
- type: "string",
284
- description: "The pattern to match function names against."
285
- } }
286
- }]
279
+ schema: {
280
+ type: "array",
281
+ items: {
282
+ type: "object",
283
+ additionalProperties: false,
284
+ properties: { pattern: {
285
+ type: "string",
286
+ description: "The pattern to match function names against."
287
+ } }
288
+ }
289
+ }
287
290
  },
288
291
  name: RULE_NAME,
289
292
  create,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-function",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "description": "(WIP) An ESLint plugin for function-related rules.",
6
6
  "homepage": "https://github.com/Rel1cx/dx",
@@ -27,19 +27,19 @@
27
27
  "package.json"
28
28
  ],
29
29
  "dependencies": {
30
- "@eslint-react/ast": "^2.7.2",
31
- "@eslint-react/shared": "^2.7.2",
32
- "@typescript-eslint/scope-manager": "^8.53.1",
33
- "@typescript-eslint/type-utils": "^8.53.1",
34
- "@typescript-eslint/types": "^8.53.1",
35
- "@typescript-eslint/utils": "^8.53.1",
30
+ "@eslint-react/ast": "^2.9.3",
31
+ "@eslint-react/shared": "^2.9.3",
32
+ "@typescript-eslint/scope-manager": "^8.54.0",
33
+ "@typescript-eslint/type-utils": "^8.54.0",
34
+ "@typescript-eslint/types": "^8.54.0",
35
+ "@typescript-eslint/utils": "^8.54.0",
36
+ "typescript-eslint": "^8.54.0",
36
37
  "string-ts": "^2.3.1",
37
38
  "ts-api-utils": "^2.4.0",
38
39
  "ts-pattern": "^5.9.0"
39
40
  },
40
41
  "devDependencies": {
41
- "@types/node": "^25.0.10",
42
- "@typescript-eslint/rule-tester": "^8.53.1",
42
+ "@types/node": "^25.2.0",
43
43
  "dedent": "^1.7.1",
44
44
  "eslint": "^9.39.2",
45
45
  "tsdown": "^0.20.1",