@accesslint/core 0.4.0 → 0.5.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.
@@ -6,18 +6,21 @@ export interface ChunkedAudit {
6
6
  /** Return all violations collected so far. */
7
7
  getViolations(): Violation[];
8
8
  }
9
+ export declare const defaultDisabledRuleIds: Set<string>;
9
10
  export interface ConfigureOptions {
10
11
  /** Additional rules to include (e.g. compiled declarative rules) */
11
12
  additionalRules?: Rule[];
12
- /** Rule IDs to disable */
13
+ /** Rule IDs to disable (in addition to default-disabled rules) */
13
14
  disabledRules?: string[];
15
+ /** Rule IDs to re-enable from the default-disabled set */
16
+ enabledRules?: string[];
14
17
  /** Locale for translated rule descriptions/guidance (e.g. 'en', 'es') */
15
18
  locale?: string;
16
19
  }
17
20
  export declare function configureRules(options: ConfigureOptions): void;
18
21
  /**
19
- * Return the full set of active rules: bundled (minus disabled) plus
20
- * any additional rules added via configureRules().
22
+ * Return the full set of active rules: bundled (minus default-disabled and
23
+ * user-disabled, plus re-enabled) plus any additional rules via configureRules().
21
24
  * When a locale is active, returns shallow-cloned rules with translated fields.
22
25
  */
23
26
  export declare function getActiveRules(): Rule[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgG5D,eAAO,MAAM,KAAK,EAAE,IAAI,EA6GvB,CAAC;AAGF,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IACxC,8CAA8C;IAC9C,aAAa,IAAI,SAAS,EAAE,CAAC;CAC9B;AASD,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC;IACzB,0BAA0B;IAC1B,aAAa,CAAC,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E,CAiBvC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAwB9D;AAED,wBAAgB,cAAc,IAAI,IAAI,CAOrC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,CAkBnD;AAID,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAQxD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accesslint/core",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Pure accessibility rule engine — WCAG audit with zero browser dependencies",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",