eslint-plugin-function 0.0.10 → 0.0.12
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 +1 -1
- package/dist/index.js +3 -3
- package/package.json +16 -14
package/README.md
CHANGED
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.
|
|
12
|
+
var version = "0.0.12";
|
|
13
13
|
function getDocsUrl() {
|
|
14
14
|
return "TODO: add docs for local ESLint rules";
|
|
15
15
|
}
|
|
@@ -150,7 +150,7 @@ function create2(context) {
|
|
|
150
150
|
}
|
|
151
151
|
var RULE_NAME3 = "function-return-boolean";
|
|
152
152
|
var RULE_FEATURES3 = [];
|
|
153
|
-
var defaultPattern = "/^(is|should)/u";
|
|
153
|
+
var defaultPattern = "/^(is|has|should)/u";
|
|
154
154
|
var defaultOptions = [
|
|
155
155
|
{
|
|
156
156
|
pattern: defaultPattern
|
|
@@ -165,7 +165,7 @@ var function_return_boolean_default = createRule({
|
|
|
165
165
|
meta: {
|
|
166
166
|
type: "problem",
|
|
167
167
|
docs: {
|
|
168
|
-
description:
|
|
168
|
+
description: `Enforce functions that match the pattern \`${defaultPattern}\` return a boolean.`,
|
|
169
169
|
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
170
170
|
},
|
|
171
171
|
messages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-function",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "(WIP) The ESLint plugin for function-related rules.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"package.json"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@eslint-react/ast": "^1.
|
|
22
|
-
"@eslint-react/eff": "^1.
|
|
23
|
-
"@eslint-react/kit": "^1.
|
|
24
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
25
|
-
"@typescript-eslint/type-utils": "^8.
|
|
26
|
-
"@typescript-eslint/types": "^8.
|
|
27
|
-
"@typescript-eslint/utils": "^8.
|
|
21
|
+
"@eslint-react/ast": "^1.40.3",
|
|
22
|
+
"@eslint-react/eff": "^1.40.3",
|
|
23
|
+
"@eslint-react/kit": "^1.40.3",
|
|
24
|
+
"@typescript-eslint/scope-manager": "^8.29.0",
|
|
25
|
+
"@typescript-eslint/type-utils": "^8.29.0",
|
|
26
|
+
"@typescript-eslint/types": "^8.29.0",
|
|
27
|
+
"@typescript-eslint/utils": "^8.29.0",
|
|
28
28
|
"string-ts": "^2.2.1",
|
|
29
29
|
"ts-pattern": "^5.7.0"
|
|
30
30
|
},
|
|
@@ -32,21 +32,22 @@
|
|
|
32
32
|
"@eslint/markdown": "^6.3.0",
|
|
33
33
|
"@tsconfig/node22": "^22.0.1",
|
|
34
34
|
"@tsconfig/strictest": "^2.0.5",
|
|
35
|
-
"@types/node": "^22.
|
|
36
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
35
|
+
"@types/node": "^22.14.0",
|
|
36
|
+
"@typescript-eslint/rule-tester": "^8.29.0",
|
|
37
37
|
"dedent": "^1.5.3",
|
|
38
38
|
"eslint": "^9.23.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
|
-
"publint": "^0.3.
|
|
42
|
+
"publint": "^0.3.10",
|
|
43
|
+
"skott": "^0.35.4",
|
|
43
44
|
"tsup": "^8.4.0",
|
|
44
|
-
"typescript-eslint": "^8.
|
|
45
|
-
"vitest": "^3.
|
|
45
|
+
"typescript-eslint": "^8.29.0",
|
|
46
|
+
"vitest": "^3.1.1",
|
|
46
47
|
"@local/configs": "0.0.0"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"eslint": "^9.
|
|
50
|
+
"eslint": "^9.23.0",
|
|
50
51
|
"ts-api-utils": "^2.1.0",
|
|
51
52
|
"typescript": "^5.8.2"
|
|
52
53
|
},
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"format:check": "dprint check",
|
|
61
62
|
"format:package-json": "pnpm m exec sort-package-json -q package.json && dprint fmt",
|
|
62
63
|
"format:write": "dprint fmt",
|
|
64
|
+
"lint": "pnpm run lint:deps && pnpm run lint:es && pnpm run lint:ts && pnpm run lint:publish",
|
|
63
65
|
"lint:deps": "skott -m file-tree -e .ts -s",
|
|
64
66
|
"lint:es": "eslint . --max-warnings 10",
|
|
65
67
|
"lint:publish": "publint",
|