@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/README.md +12 -0
- package/dist/engine/api.js +116 -116
- package/dist/index.d.ts +4 -1
- package/dist/index.js +141 -139
- package/package.json +1 -1
- package/rules/VBC-010.yaml +3 -1
- package/rules/VBC-034.yaml +4 -1
- package/rules/VBC-070.yaml +6 -1
- package/rules/VBC-077.yaml +23 -0
- package/rules/VBC-913.yaml +20 -0
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 };
|