@emulsify/core 2.7.0 → 2.7.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.
@@ -13,29 +13,14 @@ function enableRulesByTag(tags = []) {
13
13
  );
14
14
  }
15
15
 
16
- const enabledTags = [
16
+ const AxeRules = enableRulesByTag([
17
17
  "wcag2a",
18
18
  "wcag2aa",
19
19
  "wcag21a",
20
20
  "wcag21aa",
21
21
  "wcag22aa",
22
22
  "best-practice",
23
- ];
24
-
25
- const enabledRules: Rule[] = getRules(enabledTags).map((ruleMetadata) => ({
26
- id: ruleMetadata.ruleId,
27
- enabled: true,
28
- }));
29
-
30
- const a11y: A11yParameters = {
31
- config: {
32
- detailedReport: true,
33
- detailedReportOptions: {
34
- html: true,
35
- },
36
- rules: enabledRules,
37
- },
38
- };
23
+ ]);
39
24
 
40
25
  export const decorators = [
41
26
  (Story, { args }) => {
@@ -54,5 +39,13 @@ fetchCSSFiles();
54
39
 
55
40
  export const parameters = {
56
41
  actions: { argTypesRegex: '^on[A-Z].*' },
57
- a11y,
42
+ a11y: {
43
+ config: {
44
+ detailedReport: true,
45
+ detailedReportOptions: {
46
+ html: true,
47
+ },
48
+ rules: AxeRules,
49
+ },
50
+ },
58
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/core",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Bundled tooling for Storybook development + Webpack Build",
5
5
  "keywords": [
6
6
  "component library",