@sarj/eslint-plugin 15.17.2 → 15.17.3

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
@@ -92,6 +92,10 @@ declare function publicDocumentation(rules: Readonly<Record<string, {
92
92
  readonly documentation?: NativeRuleSpec;
93
93
  }>>): readonly PublicRuleSpec[];
94
94
 
95
+ interface RuleOptions$5 {
96
+ readonly basePath?: string;
97
+ }
98
+
95
99
  /**
96
100
  * @fileoverview prefer-shadcn-primitives — visible application UI should use shared shadcn primitives.
97
101
  *
@@ -99,6 +103,7 @@ declare function publicDocumentation(rules: Readonly<Record<string, {
99
103
  */
100
104
  interface RuleOptions$4 {
101
105
  readonly assumeAvailable?: boolean;
106
+ readonly detectProjectPrimitives?: boolean;
102
107
  }
103
108
 
104
109
  /**
@@ -144,6 +149,8 @@ interface RestrictedLibrary {
144
149
  interface RuleOptions$2 {
145
150
  /** Regular-expression sources matched against the filename. */
146
151
  readonly allow?: readonly string[];
152
+ /** Next.js basePath also configured for prefer-server-actions. */
153
+ readonly basePath?: string;
147
154
  }
148
155
 
149
156
  /**
@@ -285,9 +292,10 @@ declare const RULES: {
285
292
  readonly "prefer-shared-zod-enum": DocumentedRule<[], "shareEnumDomain">;
286
293
  readonly "prefer-switch-for-repeated-equality": DocumentedRule<[], "preferSwitch">;
287
294
  readonly "prefer-semantic-colors": DocumentedRule<readonly [{
295
+ opaqueForegroundPairs?: boolean;
288
296
  requireSemanticTokens?: boolean;
289
- }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
290
- readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
297
+ }?], "rawPalette" | "arbitraryColor" | "inlineColor" | "opaqueForegroundPair">;
298
+ readonly "prefer-server-actions": DocumentedRule<readonly [RuleOptions$5?], "preferServerAction">;
291
299
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
292
300
  readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
293
301
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
@@ -515,7 +523,7 @@ type FlatPreset = {
515
523
  declare const PLUGIN: {
516
524
  readonly meta: {
517
525
  readonly name: "@sarj/eslint-plugin";
518
- readonly version: "15.17.2";
526
+ readonly version: "15.17.3";
519
527
  };
520
528
  readonly rules: {
521
529
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
@@ -614,9 +622,10 @@ declare const PLUGIN: {
614
622
  readonly "prefer-shared-zod-enum": DocumentedRule<[], "shareEnumDomain">;
615
623
  readonly "prefer-switch-for-repeated-equality": DocumentedRule<[], "preferSwitch">;
616
624
  readonly "prefer-semantic-colors": DocumentedRule<readonly [{
625
+ opaqueForegroundPairs?: boolean;
617
626
  requireSemanticTokens?: boolean;
618
- }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
619
- readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
627
+ }?], "rawPalette" | "arbitraryColor" | "inlineColor" | "opaqueForegroundPair">;
628
+ readonly "prefer-server-actions": DocumentedRule<readonly [RuleOptions$5?], "preferServerAction">;
620
629
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
621
630
  readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
622
631
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
package/dist/index.d.ts CHANGED
@@ -92,6 +92,10 @@ declare function publicDocumentation(rules: Readonly<Record<string, {
92
92
  readonly documentation?: NativeRuleSpec;
93
93
  }>>): readonly PublicRuleSpec[];
94
94
 
95
+ interface RuleOptions$5 {
96
+ readonly basePath?: string;
97
+ }
98
+
95
99
  /**
96
100
  * @fileoverview prefer-shadcn-primitives — visible application UI should use shared shadcn primitives.
97
101
  *
@@ -99,6 +103,7 @@ declare function publicDocumentation(rules: Readonly<Record<string, {
99
103
  */
100
104
  interface RuleOptions$4 {
101
105
  readonly assumeAvailable?: boolean;
106
+ readonly detectProjectPrimitives?: boolean;
102
107
  }
103
108
 
104
109
  /**
@@ -144,6 +149,8 @@ interface RestrictedLibrary {
144
149
  interface RuleOptions$2 {
145
150
  /** Regular-expression sources matched against the filename. */
146
151
  readonly allow?: readonly string[];
152
+ /** Next.js basePath also configured for prefer-server-actions. */
153
+ readonly basePath?: string;
147
154
  }
148
155
 
149
156
  /**
@@ -285,9 +292,10 @@ declare const RULES: {
285
292
  readonly "prefer-shared-zod-enum": DocumentedRule<[], "shareEnumDomain">;
286
293
  readonly "prefer-switch-for-repeated-equality": DocumentedRule<[], "preferSwitch">;
287
294
  readonly "prefer-semantic-colors": DocumentedRule<readonly [{
295
+ opaqueForegroundPairs?: boolean;
288
296
  requireSemanticTokens?: boolean;
289
- }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
290
- readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
297
+ }?], "rawPalette" | "arbitraryColor" | "inlineColor" | "opaqueForegroundPair">;
298
+ readonly "prefer-server-actions": DocumentedRule<readonly [RuleOptions$5?], "preferServerAction">;
291
299
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
292
300
  readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
293
301
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
@@ -515,7 +523,7 @@ type FlatPreset = {
515
523
  declare const PLUGIN: {
516
524
  readonly meta: {
517
525
  readonly name: "@sarj/eslint-plugin";
518
- readonly version: "15.17.2";
526
+ readonly version: "15.17.3";
519
527
  };
520
528
  readonly rules: {
521
529
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
@@ -614,9 +622,10 @@ declare const PLUGIN: {
614
622
  readonly "prefer-shared-zod-enum": DocumentedRule<[], "shareEnumDomain">;
615
623
  readonly "prefer-switch-for-repeated-equality": DocumentedRule<[], "preferSwitch">;
616
624
  readonly "prefer-semantic-colors": DocumentedRule<readonly [{
625
+ opaqueForegroundPairs?: boolean;
617
626
  requireSemanticTokens?: boolean;
618
- }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
619
- readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
627
+ }?], "rawPalette" | "arbitraryColor" | "inlineColor" | "opaqueForegroundPair">;
628
+ readonly "prefer-server-actions": DocumentedRule<readonly [RuleOptions$5?], "preferServerAction">;
620
629
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
621
630
  readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
622
631
  readonly "prefer-zod-infer": DocumentedRule<readonly [{