@fedify/lint 2.0.0-dev.1

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.
@@ -0,0 +1,160 @@
1
+ import parser from "@typescript-eslint/parser";
2
+ import { Rule } from "eslint";
3
+ import metadata from "../deno.json";
4
+
5
+ //#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
+ }>;
64
+ };
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
+ };
133
+ };
134
+ };
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
+ };
159
+ //#endregion
160
+ export { recommendedConfig as default, plugin };
@@ -0,0 +1,160 @@
1
+ import parser from "@typescript-eslint/parser";
2
+ import { Rule } from "eslint";
3
+ import metadata from "../deno.json";
4
+
5
+ //#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
+ }>;
64
+ };
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
+ };
133
+ };
134
+ };
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
+ };
159
+ //#endregion
160
+ export { recommendedConfig as default, plugin };