eslint-plugin-function 0.0.34 → 0.1.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.
- package/LICENSE +1 -1
- package/README.md +2 -1
- package/dist/index.js +2 -2
- package/package.json +26 -36
package/LICENSE
CHANGED
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
|
@@ -4,13 +4,13 @@ import { P, isMatching, match } from "ts-pattern";
|
|
|
4
4
|
import ts from "typescript";
|
|
5
5
|
import * as AST from "@eslint-react/ast";
|
|
6
6
|
import { toRegExp } from "@eslint-react/shared";
|
|
7
|
-
import "@let/
|
|
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.1.0";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/utils/create-rule.ts
|
package/package.json
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-function",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "(WIP)
|
|
5
|
+
"description": "(WIP) An ESLint plugin for function-related rules.",
|
|
6
|
+
"homepage": "https://github.com/Rel1cx/dx",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/Rel1cx/dx/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Rel1cx/dx.git"
|
|
13
|
+
},
|
|
6
14
|
"license": "MIT",
|
|
15
|
+
"author": "Rel1cx<rel1cx@proton.me>",
|
|
7
16
|
"sideEffects": false,
|
|
8
17
|
"type": "module",
|
|
9
18
|
"exports": {
|
|
@@ -18,53 +27,34 @@
|
|
|
18
27
|
"package.json"
|
|
19
28
|
],
|
|
20
29
|
"dependencies": {
|
|
21
|
-
"@eslint-react/ast": "^2.3.
|
|
22
|
-
"@eslint-react/shared": "^2.3.
|
|
23
|
-
"@
|
|
24
|
-
"@typescript-eslint/
|
|
25
|
-
"@typescript-eslint/
|
|
26
|
-
"@typescript-eslint/
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"ts-pattern": "^5.9.0"
|
|
30
|
+
"@eslint-react/ast": "^2.3.9",
|
|
31
|
+
"@eslint-react/shared": "^2.3.9",
|
|
32
|
+
"@typescript-eslint/scope-manager": "^8.48.0",
|
|
33
|
+
"@typescript-eslint/type-utils": "^8.48.0",
|
|
34
|
+
"@typescript-eslint/types": "^8.48.0",
|
|
35
|
+
"@typescript-eslint/utils": "^8.48.0",
|
|
36
|
+
"string-ts": "^2.3.1",
|
|
37
|
+
"ts-api-utils": "^2.1.0",
|
|
38
|
+
"ts-pattern": "^5.9.0",
|
|
39
|
+
"@let/eff": "0.1.0"
|
|
30
40
|
},
|
|
31
41
|
"devDependencies": {
|
|
32
|
-
"@eslint/
|
|
33
|
-
"@tsconfig/node22": "^22.0.3",
|
|
34
|
-
"@tsconfig/strictest": "^2.0.8",
|
|
35
|
-
"@types/node": "^24.10.1",
|
|
36
|
-
"@typescript-eslint/rule-tester": "^8.46.4",
|
|
42
|
+
"@typescript-eslint/rule-tester": "^8.48.0",
|
|
37
43
|
"dedent": "^1.7.0",
|
|
38
|
-
"dprint": "^0.50.2",
|
|
39
44
|
"eslint": "^9.39.1",
|
|
40
|
-
"
|
|
41
|
-
"eslint-plugin-vitest": "^0.5.4",
|
|
42
|
-
"publint": "^0.3.15",
|
|
43
|
-
"skott": "^0.35.6",
|
|
44
|
-
"tsdown": "^0.16.4",
|
|
45
|
-
"typescript-eslint": "^8.46.4",
|
|
46
|
-
"vitest": "^4.0.9",
|
|
47
|
-
"@local/configs": "0.0.0"
|
|
45
|
+
"tsdown": "^0.17.0-beta.1"
|
|
48
46
|
},
|
|
49
47
|
"peerDependencies": {
|
|
50
48
|
"eslint": "^9.39.1",
|
|
51
|
-
"ts-api-utils": "^2.1.0",
|
|
52
49
|
"typescript": "^5.9.3"
|
|
53
50
|
},
|
|
54
51
|
"engines": {
|
|
55
|
-
"node": ">=20.
|
|
52
|
+
"node": ">=20.0.0"
|
|
56
53
|
},
|
|
57
54
|
"scripts": {
|
|
58
55
|
"build": "tsdown",
|
|
59
|
-
"build:
|
|
60
|
-
"format:check": "dprint check",
|
|
61
|
-
"format:package-json": "pnpm m exec sort-package-json -q package.json && dprint fmt",
|
|
62
|
-
"format:write": "dprint fmt",
|
|
63
|
-
"lint": "pnpm run lint:deps && pnpm run lint:es && pnpm run lint:ts && pnpm run lint:publish",
|
|
64
|
-
"lint:deps": "skott -m file-tree -e .ts -s",
|
|
65
|
-
"lint:es": "eslint . --max-warnings 10",
|
|
56
|
+
"build:docs": "typedoc",
|
|
66
57
|
"lint:publish": "publint",
|
|
67
|
-
"lint:ts": "tsc --noEmit"
|
|
68
|
-
"test": "vitest run"
|
|
58
|
+
"lint:ts": "tsc --noEmit"
|
|
69
59
|
}
|
|
70
60
|
}
|