@sarj/eslint-plugin 2.1.1 → 2.3.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/dist/index.d.cts CHANGED
@@ -7,6 +7,9 @@ declare const rules: {
7
7
  "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
8
8
  name: string;
9
9
  };
10
+ "no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
11
+ name: string;
12
+ };
10
13
  "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
11
14
  ignoreFiles?: readonly string[];
12
15
  }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -42,6 +45,9 @@ declare const rules: {
42
45
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
43
46
  name: string;
44
47
  };
48
+ "prefer-semantic-colors": _typescript_eslint_utils_ts_eslint.RuleModule<"rawPalette" | "arbitraryColor" | "inlineColor", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
49
+ name: string;
50
+ };
45
51
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
46
52
  name: string;
47
53
  };
@@ -57,6 +63,24 @@ declare const rules: {
57
63
  "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
58
64
  name: string;
59
65
  };
66
+ "no-cors-wildcard-with-credentials": _typescript_eslint_utils_ts_eslint.RuleModule<"corsWildcardWithCredentials", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
67
+ name: string;
68
+ };
69
+ "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
70
+ name: string;
71
+ };
72
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
73
+ name: string;
74
+ };
75
+ "no-template-literal-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noTemplateLiteralInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
76
+ name: string;
77
+ };
78
+ "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
79
+ name: string;
80
+ };
81
+ "single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
82
+ name: string;
83
+ };
60
84
  };
61
85
  declare const plugin: {
62
86
  meta: {
@@ -70,6 +94,9 @@ declare const plugin: {
70
94
  "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
71
95
  name: string;
72
96
  };
97
+ "no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
98
+ name: string;
99
+ };
73
100
  "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
74
101
  ignoreFiles?: readonly string[];
75
102
  }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -105,6 +132,9 @@ declare const plugin: {
105
132
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
106
133
  name: string;
107
134
  };
135
+ "prefer-semantic-colors": _typescript_eslint_utils_ts_eslint.RuleModule<"rawPalette" | "arbitraryColor" | "inlineColor", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
136
+ name: string;
137
+ };
108
138
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
109
139
  name: string;
110
140
  };
@@ -120,6 +150,24 @@ declare const plugin: {
120
150
  "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
121
151
  name: string;
122
152
  };
153
+ "no-cors-wildcard-with-credentials": _typescript_eslint_utils_ts_eslint.RuleModule<"corsWildcardWithCredentials", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
154
+ name: string;
155
+ };
156
+ "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
157
+ name: string;
158
+ };
159
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
160
+ name: string;
161
+ };
162
+ "no-template-literal-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noTemplateLiteralInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
163
+ name: string;
164
+ };
165
+ "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
166
+ name: string;
167
+ };
168
+ "single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
169
+ name: string;
170
+ };
123
171
  };
124
172
  configs: {
125
173
  recommended: {
@@ -140,6 +188,14 @@ declare const plugin: {
140
188
  "@sarj/no-json-stringify-error": string;
141
189
  "@sarj/no-string-concat-in-loop": string;
142
190
  "@sarj/prefer-discriminated-union": string;
191
+ "@sarj/no-comment-cruft": string;
192
+ "@sarj/prefer-semantic-colors": string;
193
+ "@sarj/no-fat-try-blocks": string;
194
+ "@sarj/no-cors-wildcard-with-credentials": string;
195
+ "@sarj/no-template-literal-in-log": string;
196
+ "@sarj/no-secret-in-log": string;
197
+ "@sarj/single-public-export": string;
198
+ "@sarj/prefer-string-literal-union": string;
143
199
  };
144
200
  };
145
201
  strict: {
@@ -163,6 +219,14 @@ declare const plugin: {
163
219
  "@sarj/no-json-stringify-error": string;
164
220
  "@sarj/no-string-concat-in-loop": string;
165
221
  "@sarj/prefer-discriminated-union": string;
222
+ "@sarj/no-comment-cruft": string;
223
+ "@sarj/prefer-semantic-colors": string;
224
+ "@sarj/no-fat-try-blocks": string;
225
+ "@sarj/no-cors-wildcard-with-credentials": string;
226
+ "@sarj/no-template-literal-in-log": string;
227
+ "@sarj/no-secret-in-log": string;
228
+ "@sarj/single-public-export": string;
229
+ "@sarj/prefer-string-literal-union": string;
166
230
  };
167
231
  };
168
232
  };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,9 @@ declare const rules: {
7
7
  "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
8
8
  name: string;
9
9
  };
10
+ "no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
11
+ name: string;
12
+ };
10
13
  "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
11
14
  ignoreFiles?: readonly string[];
12
15
  }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -42,6 +45,9 @@ declare const rules: {
42
45
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
43
46
  name: string;
44
47
  };
48
+ "prefer-semantic-colors": _typescript_eslint_utils_ts_eslint.RuleModule<"rawPalette" | "arbitraryColor" | "inlineColor", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
49
+ name: string;
50
+ };
45
51
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
46
52
  name: string;
47
53
  };
@@ -57,6 +63,24 @@ declare const rules: {
57
63
  "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
58
64
  name: string;
59
65
  };
66
+ "no-cors-wildcard-with-credentials": _typescript_eslint_utils_ts_eslint.RuleModule<"corsWildcardWithCredentials", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
67
+ name: string;
68
+ };
69
+ "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
70
+ name: string;
71
+ };
72
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
73
+ name: string;
74
+ };
75
+ "no-template-literal-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noTemplateLiteralInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
76
+ name: string;
77
+ };
78
+ "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
79
+ name: string;
80
+ };
81
+ "single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
82
+ name: string;
83
+ };
60
84
  };
61
85
  declare const plugin: {
62
86
  meta: {
@@ -70,6 +94,9 @@ declare const plugin: {
70
94
  "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
71
95
  name: string;
72
96
  };
97
+ "no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
98
+ name: string;
99
+ };
73
100
  "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
74
101
  ignoreFiles?: readonly string[];
75
102
  }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -105,6 +132,9 @@ declare const plugin: {
105
132
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
106
133
  name: string;
107
134
  };
135
+ "prefer-semantic-colors": _typescript_eslint_utils_ts_eslint.RuleModule<"rawPalette" | "arbitraryColor" | "inlineColor", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
136
+ name: string;
137
+ };
108
138
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
109
139
  name: string;
110
140
  };
@@ -120,6 +150,24 @@ declare const plugin: {
120
150
  "zod-naming-convention": _typescript_eslint_utils_ts_eslint.RuleModule<"zPrefix", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
121
151
  name: string;
122
152
  };
153
+ "no-cors-wildcard-with-credentials": _typescript_eslint_utils_ts_eslint.RuleModule<"corsWildcardWithCredentials", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
154
+ name: string;
155
+ };
156
+ "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
157
+ name: string;
158
+ };
159
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
160
+ name: string;
161
+ };
162
+ "no-template-literal-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noTemplateLiteralInLog", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
163
+ name: string;
164
+ };
165
+ "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
166
+ name: string;
167
+ };
168
+ "single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
169
+ name: string;
170
+ };
123
171
  };
124
172
  configs: {
125
173
  recommended: {
@@ -140,6 +188,14 @@ declare const plugin: {
140
188
  "@sarj/no-json-stringify-error": string;
141
189
  "@sarj/no-string-concat-in-loop": string;
142
190
  "@sarj/prefer-discriminated-union": string;
191
+ "@sarj/no-comment-cruft": string;
192
+ "@sarj/prefer-semantic-colors": string;
193
+ "@sarj/no-fat-try-blocks": string;
194
+ "@sarj/no-cors-wildcard-with-credentials": string;
195
+ "@sarj/no-template-literal-in-log": string;
196
+ "@sarj/no-secret-in-log": string;
197
+ "@sarj/single-public-export": string;
198
+ "@sarj/prefer-string-literal-union": string;
143
199
  };
144
200
  };
145
201
  strict: {
@@ -163,6 +219,14 @@ declare const plugin: {
163
219
  "@sarj/no-json-stringify-error": string;
164
220
  "@sarj/no-string-concat-in-loop": string;
165
221
  "@sarj/prefer-discriminated-union": string;
222
+ "@sarj/no-comment-cruft": string;
223
+ "@sarj/prefer-semantic-colors": string;
224
+ "@sarj/no-fat-try-blocks": string;
225
+ "@sarj/no-cors-wildcard-with-credentials": string;
226
+ "@sarj/no-template-literal-in-log": string;
227
+ "@sarj/no-secret-in-log": string;
228
+ "@sarj/single-public-export": string;
229
+ "@sarj/prefer-string-literal-union": string;
166
230
  };
167
231
  };
168
232
  };