Blog

Accessibility Linters: Catch Issues Before They Ship [2026]

TestParty
TestParty
November 17, 2026

Last updated: November 17, 2026

An accessibility linter is a static-analysis tool that checks source code β€” JSX, Liquid, Handlebars, PHP β€” for accessibility errors while a developer is still writing it, before anything renders. It flags a missing `alt` attribute or an invalid ARIA role the moment a file is saved: the earliest, cheapest checkpoint in the pipeline, since the issue it catches never gets committed.

Key numbers: Automated detection β€” the layer a linter feeds into once code reaches CI β€” covers roughly 60–70% of accessibility issue volume; the remaining 30% needs expert manual testing (TestParty remediation data across 100+ brands, as of 2026). The open-source axe-core rule library maps its rules to the 55 Level A and AA success criteria in WCAG 2.2, a set a linter checks only a narrow slice of. A stock Shopify Dawn theme ships 30–100 detectable violations before a single app is installed, and premium themes typically carry 100–350 (TestParty analysis, 2026). Shopify's own theme requirements cover roughly 16–22% of WCAG success criteria β€” most of why linting theme source is worth doing at all.

What is an accessibility linter?

An accessibility linter is a static-analysis tool that reads source code β€” not a rendered page β€” and flags errors it can determine from the markup alone, before the page ever runs in a browser.

That's the fundamental split. A linter operates on source at write-time, parsing JSX, Liquid, or HTML as text. A scanner β€” axe-core in CI, WAVE, Lighthouse β€” operates on a rendered DOM at test-time, after styles apply and layout computes. Both count as "automated," but they see different things.

A linter reliably catches what's visible in source: a missing `alt` on an `<img>`, an `<input>` with no associated `<label>`, an ARIA attribute that doesn't exist or a role an element doesn't support, and a document missing its `lang` attribute. All four are structural β€” present or absent in the text just typed, the same class of detail covered further in ARIA labels for ecommerce:

// A linter reads this without ever rendering it β€” flags the missing alt (WCAG 1.1.1: Non-text Content).
export function ProductThumbnail({ src }) {
  return <img src={src} />;
}
{% comment %} A template linter sees the identical gap in Liquid source β€” same rule, different syntax. {% endcomment %}
<img src="{{ product.featured_image | image_url }}">

What a linter cannot catch is anything that only exists once the page runs: computed contrast (source has no idea what a CSS variable resolves to against its background), focus behavior (whether Tab order matches reading order, whether a modal traps focus), or any interaction depending on JavaScript against real DOM state. Those need a browser β€” the line that separates a linter from a scanner, not a ranking of which is better.

What linters should dev teams run in 2026?

Three free tools cover most of a 2026 linting stack β€” `eslint-plugin-jsx-a11y` for React, Microsoft's Accessibility Insights for guided checks, and generic HTML validators β€” plus one well-known paid option from Deque, with template languages left as the honest gap.

`eslint-plugin-jsx-a11y` is the default for React codebases: it plugs into an existing ESLint config and runs on every save or commit.

// .eslintrc β€” recommended jsx-a11y rules, enforced as build-breaking errors.
{
  "plugins": ["jsx-a11y"],
  "extends": ["plugin:jsx-a11y/recommended"],
  "rules": {
    "jsx-a11y/alt-text": "error",
    "jsx-a11y/label-has-associated-control": "error",
    "jsx-a11y/aria-props": "error",
    "jsx-a11y/aria-role": "error",
    "jsx-a11y/html-has-lang": "error"
  }
}

Deque, the company behind axe-core, also sells axe DevTools Linter β€” a separate paid product distributed as VS Code, IntelliJ, and WebStorm extensions and licensed per seat, not bundled with the free engine. For the free-versus-paid question, see Deque axe alternatives for dev teams.

Microsoft's Accessibility Insights gets recommended in the same breath often enough to warrant a correction: it's a scanner, not a linter. FastPass runs automated checks against a rendered page; Assessment mode walks a tester through WCAG criteria by hand β€” useful, but neither reads source before it ships.

Generic HTML validators and editor plugins round out the free layer β€” checking for valid markup, a missing `lang` attribute, or an ARIA attribute value not in the ARIA specification, independent of any framework.

ToolRuns onCatchesCost
`eslint-plugin-jsx-a11y`JSX/React sourceMissing alt, unlabeled inputs, invalid ARIA, missing langFree
axe DevTools Linter (Deque)JS/JSX/HTML source, via IDE extensionBroader rule set, custom policy enforcementPaid, per seat
Accessibility Insights (Microsoft)Rendered page, not sourceAutomated scan plus guided manual checksFree
Generic HTML/editor validatorsAny markupInvalid markup, missing lang, malformed ARIAFree
Liquid / Handlebars / PHP template lintersTheme and template sourceSyntax, deprecated tags β€” accessibility rules thin to absentFree, mixed maturity

That last row is the real gap. Shopify's own theme linter checks Liquid syntax and deprecated tags, not accessibility rules the way `jsx-a11y` does for React. Handlebars and PHP templating tell the same story elsewhere: mature for logic, thin to nonexistent for accessibility β€” the gap the next section addresses.

How does PreGame fit?

PreGame is TestParty's VS Code extension: it lints theme and template code β€” Liquid included β€” at write-time the way `eslint-plugin-jsx-a11y` lints JSX, except its output is a suggested source-code fix, not just a flagged line.

Disclosure: TestParty builds PreGame, so weigh this section as vendor description, not a recommendation. The difference from the tools above is where the loop ends: a linter that only flags a missing `alt` leaves a developer to write the fix; PreGame proposes the line:

- <img src="{{ product.featured_image | image_url }}">
+ <img src="{{ product.featured_image | image_url }}" alt="{{ product.featured_image.alt | default: product.title | escape }}">

That pattern β€” detection ending in a diff, not a dashboard entry β€” is the same one behind TestParty's broader remediation work, where 35 million+ issues have been remediated as of 2026 on a 14-day initial cycle. PreGame is the editor-stage version, scoped to the template-language gap above.

Linting, PreGame included, never replaces rendered-page testing or the manual layer β€” it can't see contrast, focus order, or whether an ARIA live region announces anything, since none of that exists until a page renders. Those checks belong at the CI gate and in a monthly manual pass, not the editor.

How do you roll linting out without drowning in warnings?

Turn every rule on as an error against new code only, ratchet a shrinking legacy-file allowlist over time, and pair the linter with a PR gate so a fix can't silently regress.

In TestParty's own rollouts across Shopify Plus theme repos, flipping every `jsx-a11y` rule to `error` on day one is the single most common reason a linter gets disabled within a sprint. The fix is scoping strictness to what's new:

// .eslintrc overrides β€” rules are errors everywhere except a shrinking legacy allowlist.
// Delete a path from "files" once its violations are fixed; that's the ratchet.
{
  "overrides": [
    {
      "files": ["src/legacy/**/*.jsx"],
      "rules": {
        "jsx-a11y/alt-text": "warn",
        "jsx-a11y/label-has-associated-control": "warn",
        "jsx-a11y/aria-props": "warn"
      }
    }
  ]
}

Two other habits matter as much as the config. Pair the linter with a pull-request gate β€” it alone stops nothing if a developer commits past a warning; see accessibility in CI/CD for that setup. And treat autofix suggestions as a draft to review: a guessed `alt` value like "product image" passes every rule and helps nobody.

What does linting NOT prove?

A green linter run proves only that source code has no statically detectable error β€” nothing about rendered-page issues, and nothing about WCAG conformance, judged criterion by criterion, never as a percentage.

Three layers stack, each catching what the one before it structurally can't. Static analysis β€” the linter β€” catches source-level errors at zero runtime cost, the smallest slice of the three. Rendered-page automation, covered in automated accessibility testing: 2026 implementation, catches roughly 60–70% of real issue volume once a page exists to scan. Manual testing with assistive technology closes the remaining 30%, the layer detailed in accessibility audits: process, cost & deliverables. Reference thresholds β€” Lighthouse 90+, WAVE errors at 5 or fewer, axe violations at 3 or fewer, per WCAG compliance testing β€” work the same way at every layer: a regression floor, never proof of conformance. A clean linter run is step one of that stack, not the whole staircase.

Frequently Asked Questions

Can an accessibility linter replace axe-core in CI? No. A linter checks source before it renders; axe-core in CI checks the rendered DOM after a build runs. A linter can't see computed contrast or focus order, and CI can't see a violation before it's assembled into a page. Mature pipelines run both.

Does `eslint-plugin-jsx-a11y` catch every accessibility issue in a React app? No. It catches what's structurally visible in JSX β€” missing alt text, unlabeled inputs, invalid ARIA β€” but can't evaluate computed styles, runtime focus behavior, or whether an announcement fires. It's the first checkpoint, not the last.

Is axe DevTools Linter the same product as axe-core? No. axe-core is the free, open-source engine. axe DevTools Linter is a separate paid product from Deque, distributed as IDE extensions and licensed per seat, sold and versioned independently of the free engine underneath it.

Is Microsoft's Accessibility Insights an accessibility linter? No, despite getting recommended in the same breath. It scans a rendered page β€” FastPass for automated checks, Assessment mode for a guided walkthrough β€” rather than reading source before anything renders. A strong companion tool, just not a linter.

Can a linter catch accessibility issues in Liquid or other theme templates? Mostly not with mainstream tooling as of 2026. Shopify's own theme linter focuses on syntax and deprecated tags, not accessibility rules, and Handlebars and PHP templating ecosystems have the same gap. That thin coverage is the specific problem dev-time tools like PreGame target.

Should a team accept every autofix a linter or AI assistant suggests? No. A suggested fix can satisfy the rule and still fail the user β€” a generic `alt` value passes every check but describes nothing. Treat an autofix as a fast first draft, not a substitute for a developer's judgment about what the markup should say.

This article was produced using TestParty's cyborg approach β€” AI-assisted research and drafting, validated and refined by our accessibility team. The analysis above represents TestParty's editorial opinions based on publicly available data. As a competitor in the accessibility market, we have a point of view β€” but we've cited our sources so you can verify every claim independently.

Stay informed

Accessibility insights delivered
straight to your inbox.

Contact Us

Automate the software work for accessibility compliance, end-to-end.

Empowering businesses with seamless digital accessibility solutionsβ€”simple, inclusive, effective.

Book a Demo