@sarj/eslint-plugin 2.0.2 → 2.1.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.
- package/dist/index.cjs +710 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +715 -62
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -12,12 +12,33 @@ declare const rules: {
|
|
|
12
12
|
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
13
13
|
name: string;
|
|
14
14
|
};
|
|
15
|
+
"no-insecure-random-id": _typescript_eslint_utils_ts_eslint.RuleModule<"insecureRandomId", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
"no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
"no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
15
24
|
"no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
16
25
|
name: string;
|
|
17
26
|
};
|
|
27
|
+
"no-sentinel-return-on-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noSentinelReturn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
"no-sequential-await": _typescript_eslint_utils_ts_eslint.RuleModule<"noSequentialAwait", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
"no-string-concat-in-loop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringConcatInLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
18
36
|
"no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
19
37
|
name: string;
|
|
20
38
|
};
|
|
39
|
+
"prefer-discriminated-union": _typescript_eslint_utils_ts_eslint.RuleModule<"preferDiscriminatedUnion", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
21
42
|
"prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
22
43
|
name: string;
|
|
23
44
|
};
|
|
@@ -54,12 +75,33 @@ declare const plugin: {
|
|
|
54
75
|
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
55
76
|
name: string;
|
|
56
77
|
};
|
|
78
|
+
"no-insecure-random-id": _typescript_eslint_utils_ts_eslint.RuleModule<"insecureRandomId", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
"no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
"no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
57
87
|
"no-raw-env": _typescript_eslint_utils_ts_eslint.RuleModule<"noRawEnv", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
58
88
|
name: string;
|
|
59
89
|
};
|
|
90
|
+
"no-sentinel-return-on-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noSentinelReturn", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
"no-sequential-await": _typescript_eslint_utils_ts_eslint.RuleModule<"noSequentialAwait", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
94
|
+
name: string;
|
|
95
|
+
};
|
|
96
|
+
"no-string-concat-in-loop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringConcatInLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
97
|
+
name: string;
|
|
98
|
+
};
|
|
60
99
|
"no-unnecessary-use-client": _typescript_eslint_utils_ts_eslint.RuleModule<"unnecessaryUseClient", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
61
100
|
name: string;
|
|
62
101
|
};
|
|
102
|
+
"prefer-discriminated-union": _typescript_eslint_utils_ts_eslint.RuleModule<"preferDiscriminatedUnion", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
103
|
+
name: string;
|
|
104
|
+
};
|
|
63
105
|
"prefer-schema-for-api-payload": _typescript_eslint_utils_ts_eslint.RuleModule<"unparsedJsonAccess", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
64
106
|
name: string;
|
|
65
107
|
};
|
|
@@ -91,6 +133,13 @@ declare const plugin: {
|
|
|
91
133
|
"@sarj/prefer-server-actions": string;
|
|
92
134
|
"@sarj/no-unnecessary-use-client": string;
|
|
93
135
|
"@sarj/prefer-schema-for-api-payload": string;
|
|
136
|
+
"@sarj/no-sequential-await": string;
|
|
137
|
+
"@sarj/no-sentinel-return-on-catch": string;
|
|
138
|
+
"@sarj/no-log-only-catch": string;
|
|
139
|
+
"@sarj/no-insecure-random-id": string;
|
|
140
|
+
"@sarj/no-json-stringify-error": string;
|
|
141
|
+
"@sarj/no-string-concat-in-loop": string;
|
|
142
|
+
"@sarj/prefer-discriminated-union": string;
|
|
94
143
|
};
|
|
95
144
|
};
|
|
96
145
|
strict: {
|
|
@@ -107,6 +156,13 @@ declare const plugin: {
|
|
|
107
156
|
"@sarj/prefer-server-actions": string;
|
|
108
157
|
"@sarj/no-unnecessary-use-client": string;
|
|
109
158
|
"@sarj/prefer-schema-for-api-payload": string;
|
|
159
|
+
"@sarj/no-sequential-await": string;
|
|
160
|
+
"@sarj/no-sentinel-return-on-catch": string;
|
|
161
|
+
"@sarj/no-log-only-catch": string;
|
|
162
|
+
"@sarj/no-insecure-random-id": string;
|
|
163
|
+
"@sarj/no-json-stringify-error": string;
|
|
164
|
+
"@sarj/no-string-concat-in-loop": string;
|
|
165
|
+
"@sarj/prefer-discriminated-union": string;
|
|
110
166
|
};
|
|
111
167
|
};
|
|
112
168
|
};
|