From 5b8f016b1615f1cbd7d1d5495147c7d7283a77e7 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Thu, 10 Sep 2026 14:04:59 +0100 Subject: [PATCH 1/2] Measure th with headers --- dist/a11y.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; }), From ef526a338b68091ba1bfdb8e093fc9580bc54fb0 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Thu, 10 Sep 2026 14:16:48 +0100 Subject: [PATCH 2/2] Update .eslintrc.yml --- .github/linters/.eslintrc.yml | 2 ++ 1 file changed, 2 insertions(+) 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"