@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.
- package/dist/i18n/registry.d.ts +2 -1
- package/dist/i18n/registry.d.ts.map +1 -1
- package/dist/i18n/types.d.ts +3 -0
- package/dist/i18n/types.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.iife.js +5 -5
- package/dist/index.js +1010 -941
- package/dist/rules/index.d.ts +6 -3
- package/dist/rules/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/rules/index.d.ts
CHANGED
|
@@ -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
|
|
20
|
-
* any additional rules
|
|
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;
|
|
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;AAID,eAAO,MAAM,sBAAsB,aAqBjC,CAAC;AAUH,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC;IACzB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAc9D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,IAAI,EAAE,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"}
|