@fedify/lint 2.1.0-dev.403 → 2.1.0-dev.406

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/lint",
3
- "version": "2.1.0-dev.403+0ce42c7c",
3
+ "version": "2.1.0-dev.406+61a21e4e",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts"
package/dist/index.cjs CHANGED
@@ -27,7 +27,7 @@ const __typescript_eslint_parser = __toESM(require("@typescript-eslint/parser"))
27
27
 
28
28
  //#region deno.json
29
29
  var name = "@fedify/lint";
30
- var version = "2.1.0-dev.403+0ce42c7c";
30
+ var version = "2.1.0-dev.406+61a21e4e";
31
31
  var license = "MIT";
32
32
  var exports$1 = { ".": "./src/mod.ts" };
33
33
  var imports = {
@@ -712,25 +712,21 @@ const recommendedRuleIds = [RULE_IDS.actorIdMismatch, RULE_IDS.actorIdRequired];
712
712
  * Recommended configuration - enables all rules as warnings
713
713
  */
714
714
  const recommendedRules = (0, __fxts_core.pipe)(rules, __fxts_core.keys, (0, __fxts_core.map)((key) => [`@fedify/lint/${key}`, recommendedRuleIds.includes(key) ? "error" : "warn"]), __fxts_core.fromEntries);
715
+ const pluginName = deno_default.name;
716
+ const pluginVersion = deno_default.version;
715
717
  /**
716
718
  * Strict configuration - enables all rules as errors
717
719
  */
718
- const strictRules = (0, __fxts_core.pipe)(rules, __fxts_core.keys, (0, __fxts_core.map)((key) => [`${deno_default.name}/${key}`, "error"]), __fxts_core.fromEntries);
720
+ const strictRules = (0, __fxts_core.pipe)(rules, __fxts_core.keys, (0, __fxts_core.map)((key) => [`${pluginName}/${key}`, "error"]), __fxts_core.fromEntries);
719
721
  const plugin = {
720
722
  meta: {
721
- name: deno_default.name,
722
- version: deno_default.version
723
+ name: pluginName,
724
+ version: pluginVersion
723
725
  },
724
726
  rules,
725
727
  configs: {
726
- recommended: {
727
- plugins: [deno_default.name],
728
- rules: recommendedRules
729
- },
730
- strict: {
731
- plugins: [deno_default.name],
732
- rules: strictRules
733
- }
728
+ recommended: { rules: recommendedRules },
729
+ strict: { rules: strictRules }
734
730
  }
735
731
  };
736
732
  const recommendedConfig = {
@@ -743,7 +739,7 @@ const recommendedConfig = {
743
739
  filename + ".cjs"
744
740
  ]).flat(),
745
741
  languageOptions: { parser: __typescript_eslint_parser.default },
746
- plugins: { [deno_default.name]: plugin },
742
+ plugins: { [pluginName]: plugin },
747
743
  rules: recommendedRules
748
744
  };
749
745
  var src_default = recommendedConfig;
package/dist/index.d.cts CHANGED
@@ -1,160 +1,26 @@
1
- import parser from "@typescript-eslint/parser";
2
- import { Rule } from "eslint";
3
- import metadata from "../deno.json";
1
+ import { ESLint, Linter } from "eslint";
4
2
 
5
3
  //#region src/index.d.ts
6
- declare const plugin: {
7
- readonly meta: {
8
- readonly name: string;
9
- readonly version: string;
10
- };
11
- readonly rules: Record<"actor-id-required" | "actor-following-property-required" | "actor-followers-property-required" | "actor-outbox-property-required" | "actor-liked-property-required" | "actor-featured-property-required" | "actor-featured-tags-property-required" | "actor-inbox-property-required" | "actor-shared-inbox-property-required" | "actor-public-key-required" | "actor-assertion-method-required" | "actor-id-mismatch" | "actor-following-property-mismatch" | "actor-followers-property-mismatch" | "actor-outbox-property-mismatch" | "actor-liked-property-mismatch" | "actor-featured-property-mismatch" | "actor-featured-tags-property-mismatch" | "actor-inbox-property-mismatch" | "actor-shared-inbox-property-mismatch" | "collection-filtering-not-implemented", Rule.RuleModule>;
12
- readonly configs: {
13
- readonly recommended: {
14
- readonly plugins: [string];
15
- readonly rules: Promise<{
16
- "@fedify/lint/actor-id-required": "error" | "warn";
17
- "@fedify/lint/actor-following-property-required": "error" | "warn";
18
- "@fedify/lint/actor-followers-property-required": "error" | "warn";
19
- "@fedify/lint/actor-outbox-property-required": "error" | "warn";
20
- "@fedify/lint/actor-liked-property-required": "error" | "warn";
21
- "@fedify/lint/actor-featured-property-required": "error" | "warn";
22
- "@fedify/lint/actor-featured-tags-property-required": "error" | "warn";
23
- "@fedify/lint/actor-inbox-property-required": "error" | "warn";
24
- "@fedify/lint/actor-shared-inbox-property-required": "error" | "warn";
25
- "@fedify/lint/actor-public-key-required": "error" | "warn";
26
- "@fedify/lint/actor-assertion-method-required": "error" | "warn";
27
- "@fedify/lint/actor-id-mismatch": "error" | "warn";
28
- "@fedify/lint/actor-following-property-mismatch": "error" | "warn";
29
- "@fedify/lint/actor-followers-property-mismatch": "error" | "warn";
30
- "@fedify/lint/actor-outbox-property-mismatch": "error" | "warn";
31
- "@fedify/lint/actor-liked-property-mismatch": "error" | "warn";
32
- "@fedify/lint/actor-featured-property-mismatch": "error" | "warn";
33
- "@fedify/lint/actor-featured-tags-property-mismatch": "error" | "warn";
34
- "@fedify/lint/actor-inbox-property-mismatch": "error" | "warn";
35
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error" | "warn";
36
- "@fedify/lint/collection-filtering-not-implemented": "error" | "warn";
37
- }>;
38
- };
39
- readonly strict: {
40
- readonly plugins: [string];
41
- readonly rules: Promise<{
42
- "@fedify/lint/actor-id-required": "error";
43
- "@fedify/lint/actor-following-property-required": "error";
44
- "@fedify/lint/actor-followers-property-required": "error";
45
- "@fedify/lint/actor-outbox-property-required": "error";
46
- "@fedify/lint/actor-liked-property-required": "error";
47
- "@fedify/lint/actor-featured-property-required": "error";
48
- "@fedify/lint/actor-featured-tags-property-required": "error";
49
- "@fedify/lint/actor-inbox-property-required": "error";
50
- "@fedify/lint/actor-shared-inbox-property-required": "error";
51
- "@fedify/lint/actor-public-key-required": "error";
52
- "@fedify/lint/actor-assertion-method-required": "error";
53
- "@fedify/lint/actor-id-mismatch": "error";
54
- "@fedify/lint/actor-following-property-mismatch": "error";
55
- "@fedify/lint/actor-followers-property-mismatch": "error";
56
- "@fedify/lint/actor-outbox-property-mismatch": "error";
57
- "@fedify/lint/actor-liked-property-mismatch": "error";
58
- "@fedify/lint/actor-featured-property-mismatch": "error";
59
- "@fedify/lint/actor-featured-tags-property-mismatch": "error";
60
- "@fedify/lint/actor-inbox-property-mismatch": "error";
61
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error";
62
- "@fedify/lint/collection-filtering-not-implemented": "error";
63
- }>;
4
+
5
+ /**
6
+ * Recommended configuration - enables all rules as warnings
7
+ */
8
+ declare const recommendedRules: Record<string, "error" | "warn">;
9
+ /**
10
+ * Strict configuration - enables all rules as errors
11
+ */
12
+ declare const strictRules: Record<string, "error">;
13
+ interface FedifyLintPlugin extends ESLint.Plugin {
14
+ configs: {
15
+ recommended: {
16
+ rules: typeof recommendedRules;
64
17
  };
65
- };
66
- };
67
- declare const recommendedConfig: {
68
- files: string[];
69
- languageOptions: {
70
- parser: typeof parser;
71
- };
72
- plugins: {
73
- [metadata.name]: {
74
- readonly meta: {
75
- readonly name: string;
76
- readonly version: string;
77
- };
78
- readonly rules: Record<"actor-id-required" | "actor-following-property-required" | "actor-followers-property-required" | "actor-outbox-property-required" | "actor-liked-property-required" | "actor-featured-property-required" | "actor-featured-tags-property-required" | "actor-inbox-property-required" | "actor-shared-inbox-property-required" | "actor-public-key-required" | "actor-assertion-method-required" | "actor-id-mismatch" | "actor-following-property-mismatch" | "actor-followers-property-mismatch" | "actor-outbox-property-mismatch" | "actor-liked-property-mismatch" | "actor-featured-property-mismatch" | "actor-featured-tags-property-mismatch" | "actor-inbox-property-mismatch" | "actor-shared-inbox-property-mismatch" | "collection-filtering-not-implemented", Rule.RuleModule>;
79
- readonly configs: {
80
- readonly recommended: {
81
- readonly plugins: [string];
82
- readonly rules: Promise<{
83
- "@fedify/lint/actor-id-required": "error" | "warn";
84
- "@fedify/lint/actor-following-property-required": "error" | "warn";
85
- "@fedify/lint/actor-followers-property-required": "error" | "warn";
86
- "@fedify/lint/actor-outbox-property-required": "error" | "warn";
87
- "@fedify/lint/actor-liked-property-required": "error" | "warn";
88
- "@fedify/lint/actor-featured-property-required": "error" | "warn";
89
- "@fedify/lint/actor-featured-tags-property-required": "error" | "warn";
90
- "@fedify/lint/actor-inbox-property-required": "error" | "warn";
91
- "@fedify/lint/actor-shared-inbox-property-required": "error" | "warn";
92
- "@fedify/lint/actor-public-key-required": "error" | "warn";
93
- "@fedify/lint/actor-assertion-method-required": "error" | "warn";
94
- "@fedify/lint/actor-id-mismatch": "error" | "warn";
95
- "@fedify/lint/actor-following-property-mismatch": "error" | "warn";
96
- "@fedify/lint/actor-followers-property-mismatch": "error" | "warn";
97
- "@fedify/lint/actor-outbox-property-mismatch": "error" | "warn";
98
- "@fedify/lint/actor-liked-property-mismatch": "error" | "warn";
99
- "@fedify/lint/actor-featured-property-mismatch": "error" | "warn";
100
- "@fedify/lint/actor-featured-tags-property-mismatch": "error" | "warn";
101
- "@fedify/lint/actor-inbox-property-mismatch": "error" | "warn";
102
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error" | "warn";
103
- "@fedify/lint/collection-filtering-not-implemented": "error" | "warn";
104
- }>;
105
- };
106
- readonly strict: {
107
- readonly plugins: [string];
108
- readonly rules: Promise<{
109
- "@fedify/lint/actor-id-required": "error";
110
- "@fedify/lint/actor-following-property-required": "error";
111
- "@fedify/lint/actor-followers-property-required": "error";
112
- "@fedify/lint/actor-outbox-property-required": "error";
113
- "@fedify/lint/actor-liked-property-required": "error";
114
- "@fedify/lint/actor-featured-property-required": "error";
115
- "@fedify/lint/actor-featured-tags-property-required": "error";
116
- "@fedify/lint/actor-inbox-property-required": "error";
117
- "@fedify/lint/actor-shared-inbox-property-required": "error";
118
- "@fedify/lint/actor-public-key-required": "error";
119
- "@fedify/lint/actor-assertion-method-required": "error";
120
- "@fedify/lint/actor-id-mismatch": "error";
121
- "@fedify/lint/actor-following-property-mismatch": "error";
122
- "@fedify/lint/actor-followers-property-mismatch": "error";
123
- "@fedify/lint/actor-outbox-property-mismatch": "error";
124
- "@fedify/lint/actor-liked-property-mismatch": "error";
125
- "@fedify/lint/actor-featured-property-mismatch": "error";
126
- "@fedify/lint/actor-featured-tags-property-mismatch": "error";
127
- "@fedify/lint/actor-inbox-property-mismatch": "error";
128
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error";
129
- "@fedify/lint/collection-filtering-not-implemented": "error";
130
- }>;
131
- };
132
- };
18
+ strict: {
19
+ rules: typeof strictRules;
133
20
  };
134
21
  };
135
- rules: Promise<{
136
- "@fedify/lint/actor-id-required": "error" | "warn";
137
- "@fedify/lint/actor-following-property-required": "error" | "warn";
138
- "@fedify/lint/actor-followers-property-required": "error" | "warn";
139
- "@fedify/lint/actor-outbox-property-required": "error" | "warn";
140
- "@fedify/lint/actor-liked-property-required": "error" | "warn";
141
- "@fedify/lint/actor-featured-property-required": "error" | "warn";
142
- "@fedify/lint/actor-featured-tags-property-required": "error" | "warn";
143
- "@fedify/lint/actor-inbox-property-required": "error" | "warn";
144
- "@fedify/lint/actor-shared-inbox-property-required": "error" | "warn";
145
- "@fedify/lint/actor-public-key-required": "error" | "warn";
146
- "@fedify/lint/actor-assertion-method-required": "error" | "warn";
147
- "@fedify/lint/actor-id-mismatch": "error" | "warn";
148
- "@fedify/lint/actor-following-property-mismatch": "error" | "warn";
149
- "@fedify/lint/actor-followers-property-mismatch": "error" | "warn";
150
- "@fedify/lint/actor-outbox-property-mismatch": "error" | "warn";
151
- "@fedify/lint/actor-liked-property-mismatch": "error" | "warn";
152
- "@fedify/lint/actor-featured-property-mismatch": "error" | "warn";
153
- "@fedify/lint/actor-featured-tags-property-mismatch": "error" | "warn";
154
- "@fedify/lint/actor-inbox-property-mismatch": "error" | "warn";
155
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error" | "warn";
156
- "@fedify/lint/collection-filtering-not-implemented": "error" | "warn";
157
- }>;
158
- };
22
+ }
23
+ declare const plugin: FedifyLintPlugin;
24
+ declare const recommendedConfig: Linter.Config;
159
25
  //#endregion
160
26
  export { recommendedConfig as default, plugin };
package/dist/index.d.ts CHANGED
@@ -1,160 +1,26 @@
1
- import parser from "@typescript-eslint/parser";
2
- import { Rule } from "eslint";
3
- import metadata from "../deno.json";
1
+ import { ESLint, Linter } from "eslint";
4
2
 
5
3
  //#region src/index.d.ts
6
- declare const plugin: {
7
- readonly meta: {
8
- readonly name: string;
9
- readonly version: string;
10
- };
11
- readonly rules: Record<"actor-id-required" | "actor-following-property-required" | "actor-followers-property-required" | "actor-outbox-property-required" | "actor-liked-property-required" | "actor-featured-property-required" | "actor-featured-tags-property-required" | "actor-inbox-property-required" | "actor-shared-inbox-property-required" | "actor-public-key-required" | "actor-assertion-method-required" | "actor-id-mismatch" | "actor-following-property-mismatch" | "actor-followers-property-mismatch" | "actor-outbox-property-mismatch" | "actor-liked-property-mismatch" | "actor-featured-property-mismatch" | "actor-featured-tags-property-mismatch" | "actor-inbox-property-mismatch" | "actor-shared-inbox-property-mismatch" | "collection-filtering-not-implemented", Rule.RuleModule>;
12
- readonly configs: {
13
- readonly recommended: {
14
- readonly plugins: [string];
15
- readonly rules: Promise<{
16
- "@fedify/lint/actor-id-required": "error" | "warn";
17
- "@fedify/lint/actor-following-property-required": "error" | "warn";
18
- "@fedify/lint/actor-followers-property-required": "error" | "warn";
19
- "@fedify/lint/actor-outbox-property-required": "error" | "warn";
20
- "@fedify/lint/actor-liked-property-required": "error" | "warn";
21
- "@fedify/lint/actor-featured-property-required": "error" | "warn";
22
- "@fedify/lint/actor-featured-tags-property-required": "error" | "warn";
23
- "@fedify/lint/actor-inbox-property-required": "error" | "warn";
24
- "@fedify/lint/actor-shared-inbox-property-required": "error" | "warn";
25
- "@fedify/lint/actor-public-key-required": "error" | "warn";
26
- "@fedify/lint/actor-assertion-method-required": "error" | "warn";
27
- "@fedify/lint/actor-id-mismatch": "error" | "warn";
28
- "@fedify/lint/actor-following-property-mismatch": "error" | "warn";
29
- "@fedify/lint/actor-followers-property-mismatch": "error" | "warn";
30
- "@fedify/lint/actor-outbox-property-mismatch": "error" | "warn";
31
- "@fedify/lint/actor-liked-property-mismatch": "error" | "warn";
32
- "@fedify/lint/actor-featured-property-mismatch": "error" | "warn";
33
- "@fedify/lint/actor-featured-tags-property-mismatch": "error" | "warn";
34
- "@fedify/lint/actor-inbox-property-mismatch": "error" | "warn";
35
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error" | "warn";
36
- "@fedify/lint/collection-filtering-not-implemented": "error" | "warn";
37
- }>;
38
- };
39
- readonly strict: {
40
- readonly plugins: [string];
41
- readonly rules: Promise<{
42
- "@fedify/lint/actor-id-required": "error";
43
- "@fedify/lint/actor-following-property-required": "error";
44
- "@fedify/lint/actor-followers-property-required": "error";
45
- "@fedify/lint/actor-outbox-property-required": "error";
46
- "@fedify/lint/actor-liked-property-required": "error";
47
- "@fedify/lint/actor-featured-property-required": "error";
48
- "@fedify/lint/actor-featured-tags-property-required": "error";
49
- "@fedify/lint/actor-inbox-property-required": "error";
50
- "@fedify/lint/actor-shared-inbox-property-required": "error";
51
- "@fedify/lint/actor-public-key-required": "error";
52
- "@fedify/lint/actor-assertion-method-required": "error";
53
- "@fedify/lint/actor-id-mismatch": "error";
54
- "@fedify/lint/actor-following-property-mismatch": "error";
55
- "@fedify/lint/actor-followers-property-mismatch": "error";
56
- "@fedify/lint/actor-outbox-property-mismatch": "error";
57
- "@fedify/lint/actor-liked-property-mismatch": "error";
58
- "@fedify/lint/actor-featured-property-mismatch": "error";
59
- "@fedify/lint/actor-featured-tags-property-mismatch": "error";
60
- "@fedify/lint/actor-inbox-property-mismatch": "error";
61
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error";
62
- "@fedify/lint/collection-filtering-not-implemented": "error";
63
- }>;
4
+
5
+ /**
6
+ * Recommended configuration - enables all rules as warnings
7
+ */
8
+ declare const recommendedRules: Record<string, "error" | "warn">;
9
+ /**
10
+ * Strict configuration - enables all rules as errors
11
+ */
12
+ declare const strictRules: Record<string, "error">;
13
+ interface FedifyLintPlugin extends ESLint.Plugin {
14
+ configs: {
15
+ recommended: {
16
+ rules: typeof recommendedRules;
64
17
  };
65
- };
66
- };
67
- declare const recommendedConfig: {
68
- files: string[];
69
- languageOptions: {
70
- parser: typeof parser;
71
- };
72
- plugins: {
73
- [metadata.name]: {
74
- readonly meta: {
75
- readonly name: string;
76
- readonly version: string;
77
- };
78
- readonly rules: Record<"actor-id-required" | "actor-following-property-required" | "actor-followers-property-required" | "actor-outbox-property-required" | "actor-liked-property-required" | "actor-featured-property-required" | "actor-featured-tags-property-required" | "actor-inbox-property-required" | "actor-shared-inbox-property-required" | "actor-public-key-required" | "actor-assertion-method-required" | "actor-id-mismatch" | "actor-following-property-mismatch" | "actor-followers-property-mismatch" | "actor-outbox-property-mismatch" | "actor-liked-property-mismatch" | "actor-featured-property-mismatch" | "actor-featured-tags-property-mismatch" | "actor-inbox-property-mismatch" | "actor-shared-inbox-property-mismatch" | "collection-filtering-not-implemented", Rule.RuleModule>;
79
- readonly configs: {
80
- readonly recommended: {
81
- readonly plugins: [string];
82
- readonly rules: Promise<{
83
- "@fedify/lint/actor-id-required": "error" | "warn";
84
- "@fedify/lint/actor-following-property-required": "error" | "warn";
85
- "@fedify/lint/actor-followers-property-required": "error" | "warn";
86
- "@fedify/lint/actor-outbox-property-required": "error" | "warn";
87
- "@fedify/lint/actor-liked-property-required": "error" | "warn";
88
- "@fedify/lint/actor-featured-property-required": "error" | "warn";
89
- "@fedify/lint/actor-featured-tags-property-required": "error" | "warn";
90
- "@fedify/lint/actor-inbox-property-required": "error" | "warn";
91
- "@fedify/lint/actor-shared-inbox-property-required": "error" | "warn";
92
- "@fedify/lint/actor-public-key-required": "error" | "warn";
93
- "@fedify/lint/actor-assertion-method-required": "error" | "warn";
94
- "@fedify/lint/actor-id-mismatch": "error" | "warn";
95
- "@fedify/lint/actor-following-property-mismatch": "error" | "warn";
96
- "@fedify/lint/actor-followers-property-mismatch": "error" | "warn";
97
- "@fedify/lint/actor-outbox-property-mismatch": "error" | "warn";
98
- "@fedify/lint/actor-liked-property-mismatch": "error" | "warn";
99
- "@fedify/lint/actor-featured-property-mismatch": "error" | "warn";
100
- "@fedify/lint/actor-featured-tags-property-mismatch": "error" | "warn";
101
- "@fedify/lint/actor-inbox-property-mismatch": "error" | "warn";
102
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error" | "warn";
103
- "@fedify/lint/collection-filtering-not-implemented": "error" | "warn";
104
- }>;
105
- };
106
- readonly strict: {
107
- readonly plugins: [string];
108
- readonly rules: Promise<{
109
- "@fedify/lint/actor-id-required": "error";
110
- "@fedify/lint/actor-following-property-required": "error";
111
- "@fedify/lint/actor-followers-property-required": "error";
112
- "@fedify/lint/actor-outbox-property-required": "error";
113
- "@fedify/lint/actor-liked-property-required": "error";
114
- "@fedify/lint/actor-featured-property-required": "error";
115
- "@fedify/lint/actor-featured-tags-property-required": "error";
116
- "@fedify/lint/actor-inbox-property-required": "error";
117
- "@fedify/lint/actor-shared-inbox-property-required": "error";
118
- "@fedify/lint/actor-public-key-required": "error";
119
- "@fedify/lint/actor-assertion-method-required": "error";
120
- "@fedify/lint/actor-id-mismatch": "error";
121
- "@fedify/lint/actor-following-property-mismatch": "error";
122
- "@fedify/lint/actor-followers-property-mismatch": "error";
123
- "@fedify/lint/actor-outbox-property-mismatch": "error";
124
- "@fedify/lint/actor-liked-property-mismatch": "error";
125
- "@fedify/lint/actor-featured-property-mismatch": "error";
126
- "@fedify/lint/actor-featured-tags-property-mismatch": "error";
127
- "@fedify/lint/actor-inbox-property-mismatch": "error";
128
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error";
129
- "@fedify/lint/collection-filtering-not-implemented": "error";
130
- }>;
131
- };
132
- };
18
+ strict: {
19
+ rules: typeof strictRules;
133
20
  };
134
21
  };
135
- rules: Promise<{
136
- "@fedify/lint/actor-id-required": "error" | "warn";
137
- "@fedify/lint/actor-following-property-required": "error" | "warn";
138
- "@fedify/lint/actor-followers-property-required": "error" | "warn";
139
- "@fedify/lint/actor-outbox-property-required": "error" | "warn";
140
- "@fedify/lint/actor-liked-property-required": "error" | "warn";
141
- "@fedify/lint/actor-featured-property-required": "error" | "warn";
142
- "@fedify/lint/actor-featured-tags-property-required": "error" | "warn";
143
- "@fedify/lint/actor-inbox-property-required": "error" | "warn";
144
- "@fedify/lint/actor-shared-inbox-property-required": "error" | "warn";
145
- "@fedify/lint/actor-public-key-required": "error" | "warn";
146
- "@fedify/lint/actor-assertion-method-required": "error" | "warn";
147
- "@fedify/lint/actor-id-mismatch": "error" | "warn";
148
- "@fedify/lint/actor-following-property-mismatch": "error" | "warn";
149
- "@fedify/lint/actor-followers-property-mismatch": "error" | "warn";
150
- "@fedify/lint/actor-outbox-property-mismatch": "error" | "warn";
151
- "@fedify/lint/actor-liked-property-mismatch": "error" | "warn";
152
- "@fedify/lint/actor-featured-property-mismatch": "error" | "warn";
153
- "@fedify/lint/actor-featured-tags-property-mismatch": "error" | "warn";
154
- "@fedify/lint/actor-inbox-property-mismatch": "error" | "warn";
155
- "@fedify/lint/actor-shared-inbox-property-mismatch": "error" | "warn";
156
- "@fedify/lint/collection-filtering-not-implemented": "error" | "warn";
157
- }>;
158
- };
22
+ }
23
+ declare const plugin: FedifyLintPlugin;
24
+ declare const recommendedConfig: Linter.Config;
159
25
  //#endregion
160
26
  export { recommendedConfig as default, plugin };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import parser from "@typescript-eslint/parser";
3
3
 
4
4
  //#region deno.json
5
5
  var name = "@fedify/lint";
6
- var version = "2.1.0-dev.403+0ce42c7c";
6
+ var version = "2.1.0-dev.406+61a21e4e";
7
7
  var license = "MIT";
8
8
  var exports = { ".": "./src/mod.ts" };
9
9
  var imports = {
@@ -688,25 +688,21 @@ const recommendedRuleIds = [RULE_IDS.actorIdMismatch, RULE_IDS.actorIdRequired];
688
688
  * Recommended configuration - enables all rules as warnings
689
689
  */
690
690
  const recommendedRules = pipe(rules, keys, map((key) => [`@fedify/lint/${key}`, recommendedRuleIds.includes(key) ? "error" : "warn"]), fromEntries);
691
+ const pluginName = deno_default.name;
692
+ const pluginVersion = deno_default.version;
691
693
  /**
692
694
  * Strict configuration - enables all rules as errors
693
695
  */
694
- const strictRules = pipe(rules, keys, map((key) => [`${deno_default.name}/${key}`, "error"]), fromEntries);
696
+ const strictRules = pipe(rules, keys, map((key) => [`${pluginName}/${key}`, "error"]), fromEntries);
695
697
  const plugin = {
696
698
  meta: {
697
- name: deno_default.name,
698
- version: deno_default.version
699
+ name: pluginName,
700
+ version: pluginVersion
699
701
  },
700
702
  rules,
701
703
  configs: {
702
- recommended: {
703
- plugins: [deno_default.name],
704
- rules: recommendedRules
705
- },
706
- strict: {
707
- plugins: [deno_default.name],
708
- rules: strictRules
709
- }
704
+ recommended: { rules: recommendedRules },
705
+ strict: { rules: strictRules }
710
706
  }
711
707
  };
712
708
  const recommendedConfig = {
@@ -719,7 +715,7 @@ const recommendedConfig = {
719
715
  filename + ".cjs"
720
716
  ]).flat(),
721
717
  languageOptions: { parser },
722
- plugins: { [deno_default.name]: plugin },
718
+ plugins: { [pluginName]: plugin },
723
719
  rules: recommendedRules
724
720
  };
725
721
  var src_default = recommendedConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/lint",
3
- "version": "2.1.0-dev.403+0ce42c7c",
3
+ "version": "2.1.0-dev.406+61a21e4e",
4
4
  "description": "Fedify linting rules and plugins",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "peerDependencies": {
49
49
  "eslint": ">=9.0.0",
50
- "@fedify/fedify": "^2.1.0-dev.403+0ce42c7c"
50
+ "@fedify/fedify": "^2.1.0-dev.406+61a21e4e"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "eslint": {