@sarj/eslint-plugin 2.0.2 → 2.2.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,20 +7,47 @@ 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> & {
13
16
  name: string;
14
17
  };
18
+ "no-insecure-random-id": _typescript_eslint_utils_ts_eslint.RuleModule<"insecureRandomId", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
19
+ name: string;
20
+ };
21
+ "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
22
+ name: string;
23
+ };
24
+ "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
25
+ name: string;
26
+ };
15
27
  "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
16
28
  name: string;
17
29
  };
30
+ "no-sentinel-return-on-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noSentinelReturn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
31
+ name: string;
32
+ };
33
+ "no-sequential-await": _typescript_eslint_utils_ts_eslint.RuleModule<"noSequentialAwait", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
34
+ name: string;
35
+ };
36
+ "no-string-concat-in-loop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringConcatInLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
37
+ name: string;
38
+ };
18
39
  "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
19
40
  name: string;
20
41
  };
42
+ "prefer-discriminated-union": _typescript_eslint_utils_ts_eslint.RuleModule<"preferDiscriminatedUnion", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
43
+ name: string;
44
+ };
21
45
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
22
46
  name: string;
23
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
+ };
24
51
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
25
52
  name: string;
26
53
  };
@@ -49,20 +76,47 @@ declare const plugin: {
49
76
  "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
50
77
  name: string;
51
78
  };
79
+ "no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
80
+ name: string;
81
+ };
52
82
  "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
53
83
  ignoreFiles?: readonly string[];
54
84
  }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
55
85
  name: string;
56
86
  };
87
+ "no-insecure-random-id": _typescript_eslint_utils_ts_eslint.RuleModule<"insecureRandomId", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
88
+ name: string;
89
+ };
90
+ "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
91
+ name: string;
92
+ };
93
+ "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
94
+ name: string;
95
+ };
57
96
  "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
58
97
  name: string;
59
98
  };
99
+ "no-sentinel-return-on-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noSentinelReturn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
100
+ name: string;
101
+ };
102
+ "no-sequential-await": _typescript_eslint_utils_ts_eslint.RuleModule<"noSequentialAwait", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
103
+ name: string;
104
+ };
105
+ "no-string-concat-in-loop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringConcatInLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
106
+ name: string;
107
+ };
60
108
  "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
61
109
  name: string;
62
110
  };
111
+ "prefer-discriminated-union": _typescript_eslint_utils_ts_eslint.RuleModule<"preferDiscriminatedUnion", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
112
+ name: string;
113
+ };
63
114
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
64
115
  name: string;
65
116
  };
117
+ "prefer-semantic-colors": _typescript_eslint_utils_ts_eslint.RuleModule<"rawPalette" | "arbitraryColor" | "inlineColor", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
118
+ name: string;
119
+ };
66
120
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
67
121
  name: string;
68
122
  };
@@ -91,6 +145,15 @@ declare const plugin: {
91
145
  "@sarj/prefer-server-actions": string;
92
146
  "@sarj/no-unnecessary-use-client": string;
93
147
  "@sarj/prefer-schema-for-api-payload": string;
148
+ "@sarj/no-sequential-await": string;
149
+ "@sarj/no-sentinel-return-on-catch": string;
150
+ "@sarj/no-log-only-catch": string;
151
+ "@sarj/no-insecure-random-id": string;
152
+ "@sarj/no-json-stringify-error": string;
153
+ "@sarj/no-string-concat-in-loop": string;
154
+ "@sarj/prefer-discriminated-union": string;
155
+ "@sarj/no-comment-cruft": string;
156
+ "@sarj/prefer-semantic-colors": string;
94
157
  };
95
158
  };
96
159
  strict: {
@@ -107,6 +170,15 @@ declare const plugin: {
107
170
  "@sarj/prefer-server-actions": string;
108
171
  "@sarj/no-unnecessary-use-client": string;
109
172
  "@sarj/prefer-schema-for-api-payload": string;
173
+ "@sarj/no-sequential-await": string;
174
+ "@sarj/no-sentinel-return-on-catch": string;
175
+ "@sarj/no-log-only-catch": string;
176
+ "@sarj/no-insecure-random-id": string;
177
+ "@sarj/no-json-stringify-error": string;
178
+ "@sarj/no-string-concat-in-loop": string;
179
+ "@sarj/prefer-discriminated-union": string;
180
+ "@sarj/no-comment-cruft": string;
181
+ "@sarj/prefer-semantic-colors": string;
110
182
  };
111
183
  };
112
184
  };
package/dist/index.d.ts CHANGED
@@ -7,20 +7,47 @@ 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> & {
13
16
  name: string;
14
17
  };
18
+ "no-insecure-random-id": _typescript_eslint_utils_ts_eslint.RuleModule<"insecureRandomId", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
19
+ name: string;
20
+ };
21
+ "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
22
+ name: string;
23
+ };
24
+ "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
25
+ name: string;
26
+ };
15
27
  "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
16
28
  name: string;
17
29
  };
30
+ "no-sentinel-return-on-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noSentinelReturn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
31
+ name: string;
32
+ };
33
+ "no-sequential-await": _typescript_eslint_utils_ts_eslint.RuleModule<"noSequentialAwait", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
34
+ name: string;
35
+ };
36
+ "no-string-concat-in-loop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringConcatInLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
37
+ name: string;
38
+ };
18
39
  "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
19
40
  name: string;
20
41
  };
42
+ "prefer-discriminated-union": _typescript_eslint_utils_ts_eslint.RuleModule<"preferDiscriminatedUnion", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
43
+ name: string;
44
+ };
21
45
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
22
46
  name: string;
23
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
+ };
24
51
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
25
52
  name: string;
26
53
  };
@@ -49,20 +76,47 @@ declare const plugin: {
49
76
  "no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
50
77
  name: string;
51
78
  };
79
+ "no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
80
+ name: string;
81
+ };
52
82
  "no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
53
83
  ignoreFiles?: readonly string[];
54
84
  }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
55
85
  name: string;
56
86
  };
87
+ "no-insecure-random-id": _typescript_eslint_utils_ts_eslint.RuleModule<"insecureRandomId", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
88
+ name: string;
89
+ };
90
+ "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
91
+ name: string;
92
+ };
93
+ "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
94
+ name: string;
95
+ };
57
96
  "no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
58
97
  name: string;
59
98
  };
99
+ "no-sentinel-return-on-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noSentinelReturn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
100
+ name: string;
101
+ };
102
+ "no-sequential-await": _typescript_eslint_utils_ts_eslint.RuleModule<"noSequentialAwait", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
103
+ name: string;
104
+ };
105
+ "no-string-concat-in-loop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringConcatInLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
106
+ name: string;
107
+ };
60
108
  "no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
61
109
  name: string;
62
110
  };
111
+ "prefer-discriminated-union": _typescript_eslint_utils_ts_eslint.RuleModule<"preferDiscriminatedUnion", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
112
+ name: string;
113
+ };
63
114
  "prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
64
115
  name: string;
65
116
  };
117
+ "prefer-semantic-colors": _typescript_eslint_utils_ts_eslint.RuleModule<"rawPalette" | "arbitraryColor" | "inlineColor", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
118
+ name: string;
119
+ };
66
120
  "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
67
121
  name: string;
68
122
  };
@@ -91,6 +145,15 @@ declare const plugin: {
91
145
  "@sarj/prefer-server-actions": string;
92
146
  "@sarj/no-unnecessary-use-client": string;
93
147
  "@sarj/prefer-schema-for-api-payload": string;
148
+ "@sarj/no-sequential-await": string;
149
+ "@sarj/no-sentinel-return-on-catch": string;
150
+ "@sarj/no-log-only-catch": string;
151
+ "@sarj/no-insecure-random-id": string;
152
+ "@sarj/no-json-stringify-error": string;
153
+ "@sarj/no-string-concat-in-loop": string;
154
+ "@sarj/prefer-discriminated-union": string;
155
+ "@sarj/no-comment-cruft": string;
156
+ "@sarj/prefer-semantic-colors": string;
94
157
  };
95
158
  };
96
159
  strict: {
@@ -107,6 +170,15 @@ declare const plugin: {
107
170
  "@sarj/prefer-server-actions": string;
108
171
  "@sarj/no-unnecessary-use-client": string;
109
172
  "@sarj/prefer-schema-for-api-payload": string;
173
+ "@sarj/no-sequential-await": string;
174
+ "@sarj/no-sentinel-return-on-catch": string;
175
+ "@sarj/no-log-only-catch": string;
176
+ "@sarj/no-insecure-random-id": string;
177
+ "@sarj/no-json-stringify-error": string;
178
+ "@sarj/no-string-concat-in-loop": string;
179
+ "@sarj/prefer-discriminated-union": string;
180
+ "@sarj/no-comment-cruft": string;
181
+ "@sarj/prefer-semantic-colors": string;
110
182
  };
111
183
  };
112
184
  };