eslint-plugin-function-rule 0.0.14 → 0.0.16
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/dist/index.d.ts +3 -12
- package/dist/index.js +1 -1
- package/package.json +13 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "@eslint/core";
|
|
1
2
|
import { Rule } from "eslint";
|
|
2
3
|
|
|
3
|
-
//#region index.d.ts
|
|
4
|
-
declare function functionRule(create: Rule.RuleModule["create"]):
|
|
5
|
-
readonly rules: {
|
|
6
|
-
readonly "function-rule": {
|
|
7
|
-
readonly meta: {
|
|
8
|
-
readonly fixable: "code";
|
|
9
|
-
readonly hasSuggestions: true;
|
|
10
|
-
};
|
|
11
|
-
readonly create: (context: Rule.RuleContext) => Rule.RuleListener;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare function functionRule(create: Rule.RuleModule["create"]): Plugin;
|
|
15
6
|
declare function defineRuleListener(ruleListener: Rule.RuleListener): Rule.RuleListener;
|
|
16
7
|
//#endregion
|
|
17
8
|
export { defineRuleListener, functionRule };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-function-rule",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
12
15
|
},
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
13
18
|
"files": [
|
|
14
19
|
"dist",
|
|
15
20
|
"package.json"
|
|
16
21
|
],
|
|
17
22
|
"dependencies": {
|
|
18
|
-
"@eslint/core": "^0.
|
|
23
|
+
"@eslint/core": "^1.0.0"
|
|
19
24
|
},
|
|
20
25
|
"devDependencies": {
|
|
21
26
|
"dprint": "^0.50.2",
|
|
22
|
-
"tsdown": "^0.16.
|
|
27
|
+
"tsdown": "^0.16.4"
|
|
23
28
|
},
|
|
24
29
|
"peerDependencies": {
|
|
25
30
|
"eslint": "^9.39.1",
|
|
@@ -28,6 +33,7 @@
|
|
|
28
33
|
"scripts": {
|
|
29
34
|
"build": "tsdown",
|
|
30
35
|
"format:check": "dprint check",
|
|
31
|
-
"format:write": "dprint fmt"
|
|
36
|
+
"format:write": "dprint fmt",
|
|
37
|
+
"type-check": "tsc --noEmit"
|
|
32
38
|
}
|
|
33
39
|
}
|