@fabriziosalmi/slopless 1.4.3 → 1.4.5

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.ts CHANGED
@@ -23,6 +23,7 @@ declare const RuleSchema: z.ZodObject<{
23
23
  multiline: z.ZodOptional<z.ZodBoolean>;
24
24
  exclude_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
25
  exclude_selectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
+ require_selectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
27
  git_check: z.ZodOptional<z.ZodEnum<{
27
28
  committed_env: "committed_env";
28
29
  binary_file: "binary_file";
@@ -114,9 +115,11 @@ declare function applyIgnoreRules(files: string[], configIgnore?: string[]): str
114
115
  * this for was buried under style. Selecting up front is cheaper than reading
115
116
  * past it, and cheaper than running the rules at all.
116
117
  */
118
+ declare class UsageError extends Error {
119
+ }
117
120
  declare function selectRules(rules: Rule[], options: {
118
121
  only?: string;
119
122
  minSeverity?: string;
120
123
  }): Rule[];
121
124
 
122
- export { applyIgnoreRules, selectRules };
125
+ export { UsageError, applyIgnoreRules, selectRules };