eslint-plugin-function 0.0.20 → 0.0.22

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 +3 -3
  2. package/package.json +15 -15
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { AST_NODE_TYPES } from '@typescript-eslint/types';
9
9
 
10
10
  // package.json
11
11
  var name = "eslint-plugin-function";
12
- var version = "0.0.20";
12
+ var version = "0.0.22";
13
13
  function getDocsUrl() {
14
14
  return "TODO: add docs for local ESLint rules";
15
15
  }
@@ -205,7 +205,7 @@ function create3(context, [opts]) {
205
205
  }
206
206
  return {
207
207
  [":function"](node) {
208
- const functionName = AST.getFunctionIdentifier(node)?.name;
208
+ const functionName = AST.getFunctionId(node)?.name;
209
209
  const isMatched = functionName != null && pattern.test(functionName);
210
210
  functionEntries.push({ functionName, functionNode: node, isMatched });
211
211
  },
@@ -231,7 +231,7 @@ function create3(context, [opts]) {
231
231
  const { functionName, functionNode, isMatched = false } = functionEntries.at(-1) ?? {};
232
232
  if (functionName == null || functionNode == null || !isMatched) return;
233
233
  handleReturnExpression(context, node.argument, (expr, data) => {
234
- const functionName2 = AST.getFunctionIdentifier(functionNode)?.name;
234
+ const functionName2 = AST.getFunctionId(functionNode)?.name;
235
235
  if (functionName2 == null) return;
236
236
  context.report({
237
237
  messageId: "functionReturnBoolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-function",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "private": false,
5
5
  "description": "(WIP) The ESLint plugin for function-related rules.",
6
6
  "license": "MIT",
@@ -21,29 +21,29 @@
21
21
  "@eslint-react/ast": "^2.0.0-next.4",
22
22
  "@eslint-react/eff": "^2.0.0-next.4",
23
23
  "@eslint-react/kit": "^2.0.0-next.4",
24
- "@typescript-eslint/scope-manager": "^8.30.1",
25
- "@typescript-eslint/type-utils": "^8.30.1",
26
- "@typescript-eslint/types": "^8.30.1",
27
- "@typescript-eslint/utils": "^8.30.1",
24
+ "@typescript-eslint/scope-manager": "^8.33.1",
25
+ "@typescript-eslint/type-utils": "^8.33.1",
26
+ "@typescript-eslint/types": "^8.33.1",
27
+ "@typescript-eslint/utils": "^8.33.1",
28
28
  "string-ts": "^2.2.1",
29
- "ts-pattern": "^5.7.0"
29
+ "ts-pattern": "^5.7.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@eslint/markdown": "^6.4.0",
33
- "@tsconfig/node22": "^22.0.1",
32
+ "@eslint/markdown": "^6.5.0",
33
+ "@tsconfig/node22": "^22.0.2",
34
34
  "@tsconfig/strictest": "^2.0.5",
35
- "@types/node": "^22.14.1",
36
- "@typescript-eslint/rule-tester": "^8.30.1",
37
- "dedent": "^1.5.3",
38
- "eslint": "^9.25.0",
35
+ "@types/node": "^22.15.30",
36
+ "@typescript-eslint/rule-tester": "^8.33.1",
37
+ "dedent": "^1.6.0",
38
+ "eslint": "^9.28.0",
39
39
  "eslint-config-flat-gitignore": "^2.1.0",
40
40
  "eslint-plugin-vitest": "^0.5.4",
41
41
  "jiti": "^2.4.2",
42
42
  "publint": "^0.3.12",
43
43
  "skott": "^0.35.4",
44
- "tsup": "^8.4.0",
45
- "typescript-eslint": "^8.30.1",
46
- "vitest": "^3.1.1",
44
+ "tsup": "^8.5.0",
45
+ "typescript-eslint": "^8.33.1",
46
+ "vitest": "^3.2.2",
47
47
  "@local/configs": "0.0.0"
48
48
  },
49
49
  "peerDependencies": {