eslint-plugin-function 0.0.33 → 0.0.35
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/README.md +2 -1
- package/dist/index.js +2 -2
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -20,9 +20,10 @@ npm install --save-dev eslint-plugin-function
|
|
|
20
20
|
// @ts-check
|
|
21
21
|
import eslintJs from "@eslint/js";
|
|
22
22
|
import pluginFunction from "eslint-plugin-function";
|
|
23
|
+
import { defineConfig } from "eslint/config";
|
|
23
24
|
import tseslint from "typescript-eslint";
|
|
24
25
|
|
|
25
|
-
export default
|
|
26
|
+
export default defineConfig({
|
|
26
27
|
files: ["**/*.ts", "**/*.tsx"],
|
|
27
28
|
extends: [
|
|
28
29
|
eslintJs.configs.recommended,
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import { isFalseLiteralType, isTrueLiteralType, isTypeFlagSet, unionConstituents
|
|
|
3
3
|
import { P, isMatching, match } from "ts-pattern";
|
|
4
4
|
import ts from "typescript";
|
|
5
5
|
import * as AST from "@eslint-react/ast";
|
|
6
|
-
import "@eslint-react/eff";
|
|
7
6
|
import { toRegExp } from "@eslint-react/shared";
|
|
7
|
+
import "@let/eff";
|
|
8
8
|
import { getConstrainedTypeAtLocation } from "@typescript-eslint/type-utils";
|
|
9
9
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
12
|
var name = "eslint-plugin-function";
|
|
13
|
-
var version = "0.0.
|
|
13
|
+
var version = "0.0.35";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/utils/create-rule.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-function",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "(WIP) The ESLint plugin for function-related rules.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,37 +18,36 @@
|
|
|
18
18
|
"package.json"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@eslint-react/ast": "^2.
|
|
22
|
-
"@eslint-react/
|
|
23
|
-
"@
|
|
24
|
-
"@typescript-eslint/scope-manager": "^8.46.
|
|
25
|
-
"@typescript-eslint/type-utils": "^8.46.
|
|
26
|
-
"@typescript-eslint/types": "^8.46.
|
|
27
|
-
"@typescript-eslint/utils": "^8.46.
|
|
21
|
+
"@eslint-react/ast": "^2.3.5",
|
|
22
|
+
"@eslint-react/shared": "^2.3.5",
|
|
23
|
+
"@let/eff": "npm:@jsr/let__eff@^0.0.0",
|
|
24
|
+
"@typescript-eslint/scope-manager": "^8.46.4",
|
|
25
|
+
"@typescript-eslint/type-utils": "^8.46.4",
|
|
26
|
+
"@typescript-eslint/types": "^8.46.4",
|
|
27
|
+
"@typescript-eslint/utils": "^8.46.4",
|
|
28
28
|
"string-ts": "^2.2.1",
|
|
29
|
-
"ts-pattern": "^5.
|
|
29
|
+
"ts-pattern": "^5.9.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@eslint/markdown": "^7.
|
|
33
|
-
"@tsconfig/node22": "^22.0.
|
|
34
|
-
"@tsconfig/strictest": "^2.0.
|
|
35
|
-
"@types/node": "^24.
|
|
36
|
-
"@typescript-eslint/rule-tester": "^8.46.
|
|
32
|
+
"@eslint/markdown": "^7.5.1",
|
|
33
|
+
"@tsconfig/node22": "^22.0.4",
|
|
34
|
+
"@tsconfig/strictest": "^2.0.8",
|
|
35
|
+
"@types/node": "^24.10.1",
|
|
36
|
+
"@typescript-eslint/rule-tester": "^8.46.4",
|
|
37
37
|
"dedent": "^1.7.0",
|
|
38
38
|
"dprint": "^0.50.2",
|
|
39
|
-
"eslint": "^9.
|
|
39
|
+
"eslint": "^9.39.1",
|
|
40
40
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
41
41
|
"eslint-plugin-vitest": "^0.5.4",
|
|
42
|
-
"
|
|
43
|
-
"publint": "^0.3.14",
|
|
42
|
+
"publint": "^0.3.15",
|
|
44
43
|
"skott": "^0.35.6",
|
|
45
|
-
"tsdown": "^0.
|
|
46
|
-
"typescript-eslint": "^8.46.
|
|
47
|
-
"vitest": "^
|
|
44
|
+
"tsdown": "^0.16.4",
|
|
45
|
+
"typescript-eslint": "^8.46.4",
|
|
46
|
+
"vitest": "^4.0.9",
|
|
48
47
|
"@local/configs": "0.0.0"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
|
-
"eslint": "^9.
|
|
50
|
+
"eslint": "^9.39.1",
|
|
52
51
|
"ts-api-utils": "^2.1.0",
|
|
53
52
|
"typescript": "^5.9.3"
|
|
54
53
|
},
|