Skip to content

Tooling: install the jsx-a11y plugin#377

Draft
rami-elementor wants to merge 9 commits intocore-betafrom
jsx-a11y
Draft

Tooling: install the jsx-a11y plugin#377
rami-elementor wants to merge 9 commits intocore-betafrom
jsx-a11y

Conversation

@rami-elementor
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds accessibility-focused tooling and checks to the Code Snippets repo by introducing JSX a11y linting rules, adding axe-core based Playwright accessibility tests, and wiring up a dedicated CI lint workflow.

Changes:

  • Add eslint-plugin-jsx-a11y to ESLint flat config and configure initial a11y rule severities.
  • Add @axe-core/playwright and a new Playwright E2E accessibility spec that runs axe against key admin screens.
  • Introduce a new GitHub Actions workflow to run CSS/JS/PHP linting on PRs and branch pushes.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tests/e2e/accessibility.spec.ts New axe-core Playwright spec covering several WP admin/plugin screens.
package.json Adds devDependencies for axe Playwright integration and eslint-plugin-jsx-a11y.
package-lock.json Lockfile updates for the new devDependencies and transitive packages.
eslint.config.mjs Enables jsx-a11y recommended flat config and adds explicit a11y rule severity overrides.
.github/workflows/lint.yml New CI workflow intended to run stylelint, eslint, and PHP CS.

Comment thread tests/e2e/accessibility.spec.ts Outdated
Comment thread tests/e2e/accessibility.spec.ts Outdated
Comment thread tests/e2e/accessibility.spec.ts Outdated
Comment thread tests/e2e/accessibility.spec.ts
Comment on lines +38 to +48
- name: Install npm dependencies
run: npm ci

- name: Run Stylelint
run: npm run lint:styles

- name: Run ESLint
run: npm run lint:js

- name: Run PHP CS
run: npm run lint:php
Comment thread package.json
Comment thread tests/e2e/accessibility.spec.ts Outdated
@rami-elementor rami-elementor marked this pull request as draft May 2, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants