Skip to content

Commit caf6816

Browse files
author
Cameron Cundiff
committed
Configure for use with access_lint-rails
- This will be included for use in CI with the access_lint-rails gem
1 parent c9cbef5 commit caf6816

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/auditor.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ import { axe } from "axe-core/axe.min.js";
22
import report from "./reporter";
33

44
export default function () {
5-
const options = {
6-
"rules": {
7-
"color-contrast": { enabled: false },
8-
}
9-
};
10-
11-
window.axe.a11yCheck(document, options, (results) => {
5+
window.axe.a11yCheck(document, {}, (results) => {
126
report(results);
137
});
148
}

src/reporter.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import request from "browser-request";
22

3-
const url = "https://beta.accesslint.com/api/v1/reports";
3+
const url = "/access_lint/errors"
44

55
export default function (message) {
66
const violations = message.violations;
@@ -11,10 +11,5 @@ export default function (message) {
1111
url: url,
1212
json: message,
1313
}, function() {});
14-
15-
console.error(
16-
`AccessLint - ${violations.length} accessibility violations:`,
17-
violations
18-
);
1914
}
2015
}

0 commit comments

Comments
 (0)