@sarj/eslint-plugin 9.10.0 → 9.12.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/README.md +15 -0
- package/dist/index.cjs +475 -338
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +470 -333
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
package/dist/index.d.cts
CHANGED
|
@@ -224,6 +224,9 @@ declare const rules: {
|
|
|
224
224
|
"prefer-input-group-search": _typescript_eslint_utils_ts_eslint.RuleModule<"preferInputGroup", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
225
225
|
name: string;
|
|
226
226
|
};
|
|
227
|
+
"prefer-shadcn-primitives": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcnPrimitive", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
228
|
+
name: string;
|
|
229
|
+
};
|
|
227
230
|
"prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
|
|
228
231
|
minElements?: number;
|
|
229
232
|
checkRegex?: boolean;
|
|
@@ -302,7 +305,7 @@ declare const rules: {
|
|
|
302
305
|
};
|
|
303
306
|
};
|
|
304
307
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
305
|
-
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid"];
|
|
308
|
+
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
306
309
|
declare const recommendedRules: {
|
|
307
310
|
readonly "@sarj/enforce-file-structure": "warn";
|
|
308
311
|
readonly "@sarj/no-async-callback-in-wait-for": "warn";
|
|
@@ -438,7 +441,7 @@ type FlatPreset = {
|
|
|
438
441
|
declare const plugin: {
|
|
439
442
|
meta: {
|
|
440
443
|
readonly name: "@sarj/eslint-plugin";
|
|
441
|
-
readonly version: "9.
|
|
444
|
+
readonly version: "9.12.1";
|
|
442
445
|
};
|
|
443
446
|
rules: {
|
|
444
447
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -574,6 +577,9 @@ declare const plugin: {
|
|
|
574
577
|
"prefer-input-group-search": _typescript_eslint_utils_ts_eslint.RuleModule<"preferInputGroup", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
575
578
|
name: string;
|
|
576
579
|
};
|
|
580
|
+
"prefer-shadcn-primitives": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcnPrimitive", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
581
|
+
name: string;
|
|
582
|
+
};
|
|
577
583
|
"prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
|
|
578
584
|
minElements?: number;
|
|
579
585
|
checkRegex?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,9 @@ declare const rules: {
|
|
|
224
224
|
"prefer-input-group-search": _typescript_eslint_utils_ts_eslint.RuleModule<"preferInputGroup", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
225
225
|
name: string;
|
|
226
226
|
};
|
|
227
|
+
"prefer-shadcn-primitives": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcnPrimitive", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
228
|
+
name: string;
|
|
229
|
+
};
|
|
227
230
|
"prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
|
|
228
231
|
minElements?: number;
|
|
229
232
|
checkRegex?: boolean;
|
|
@@ -302,7 +305,7 @@ declare const rules: {
|
|
|
302
305
|
};
|
|
303
306
|
};
|
|
304
307
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
305
|
-
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid"];
|
|
308
|
+
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
306
309
|
declare const recommendedRules: {
|
|
307
310
|
readonly "@sarj/enforce-file-structure": "warn";
|
|
308
311
|
readonly "@sarj/no-async-callback-in-wait-for": "warn";
|
|
@@ -438,7 +441,7 @@ type FlatPreset = {
|
|
|
438
441
|
declare const plugin: {
|
|
439
442
|
meta: {
|
|
440
443
|
readonly name: "@sarj/eslint-plugin";
|
|
441
|
-
readonly version: "9.
|
|
444
|
+
readonly version: "9.12.1";
|
|
442
445
|
};
|
|
443
446
|
rules: {
|
|
444
447
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -574,6 +577,9 @@ declare const plugin: {
|
|
|
574
577
|
"prefer-input-group-search": _typescript_eslint_utils_ts_eslint.RuleModule<"preferInputGroup", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
575
578
|
name: string;
|
|
576
579
|
};
|
|
580
|
+
"prefer-shadcn-primitives": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShadcnPrimitive", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
581
|
+
name: string;
|
|
582
|
+
};
|
|
577
583
|
"prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
|
|
578
584
|
minElements?: number;
|
|
579
585
|
checkRegex?: boolean;
|