diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml index c1e1a95..cac6dc1 100644 --- a/.github/linters/.eslintrc.yml +++ b/.github/linters/.eslintrc.yml @@ -67,6 +67,8 @@ overrides: - "plugin:react/recommended" parserOptions: ecmaVersion: latest + ecmaFeatures: + globalReturn: true - files: - "**/*.mjs" diff --git a/dist/a11y.js b/dist/a11y.js index adcb638..e33343b 100644 --- a/dist/a11y.js +++ b/dist/a11y.js @@ -150,6 +150,12 @@ return JSON.stringify({ total_with_headers: document.querySelectorAll('td[headers]').length, }; }), + th_with_headers_attribute: captureAndLogError(() => { + return { + total_ths: document.querySelectorAll('th').length, + total_with_headers: document.querySelectorAll('th[headers]').length, + }; + }), total_anchors_with_role_button: captureAndLogError(() => { return document.querySelectorAll('a[role="button" i]').length; }),