• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ota-meshi / eslint-plugin-astro / 35085468051
90%

Build:
DEFAULT BRANCH: main
Ran 16 Sep 2026 10:32AM UTC
Jobs 1
Files 59
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Sep 2026 10:31AM UTC coverage: 89.504% (-8.0%) from 97.46%
35085468051

push

github

web-flow
feat: add support for eslint-plugin-jsx-a11y-x (#629)

* fix: support loading CJS and ESM plugins

- Resolve plugins from the user's local environment using `createRequire()`.
- Support loading plugins distributed as both CommonJS and native ESM.
- Unwrap the default export returned by Node.js when requiring an ESM module.
- Preserve the existing behavior for CommonJS modules.

Node.js 22.12.0 enables `require(esm)` by default, making it possible to use
`createRequire()` for both module formats without relying on dynamic imports.

* feat: add support for eslint-plugin-jsx-a11y-x and normalize integration

- Loads the available a11y plugin from the user local environment and falls back gracefully when none is installed.
- Normalizes the plugin structure from either format into one shared internal interface.
- Resolves rule metadata, docs URLs, and plugin names without duplicating upstream logic.

The result is that `eslint-plugin-astro` support both `eslint-plugin-jsx-a11y-x` and `eslint-plugin-jsx-a11y`, and normalize their APIs into a single internal representation without breaking compatibility with either plugin variant.

* docs: update jsx-a11y rule docs for eslint-plugin-jsx-a11y-x compatibility

Refresh the `eslint-plugin-astro` documentation to reflect the new compatibility layer with `eslint-plugin-jsx-a11y` and `eslint-plugin-jsx-a11y-x`.

* fix: prefer eslint-plugin-jsx-a11y and keep eslint-plugin-jsx-a11y-x as fallback

* refactor: simplify a11y plugin loading

Both plugins expose their rules directly, so the loader
now uses the loaded plugin without transforming its structure.

* refactor: remove PLUGIN_NAMES constant and avoid repeated plugin retries

* test: add jsx-a11y plugin loading integration tests

The integration test now verifies plugin resolution, fallback behavior, priority,
and actual rule execution for both supported jsx-a11y implementations.

* Create fuzzy-suits-change.md

---------

Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>

1109 of 1328 branches covered (83.51%)

Branch coverage included in aggregate %.

93 of 99 new or added lines in 4 files covered. (93.94%)

564 existing lines in 31 files now uncovered.

6387 of 7047 relevant lines covered (90.63%)

45.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
93.41
-6.13% src/a11y/rules.ts
1
92.45
-1.1% src/a11y/configs.ts
1
91.46
-8.54% src/a11y/load.ts

Coverage Regressions

Lines Coverage ∆ File
97
88.03
-9.34% src/rules/no-unused-css-selector.ts
96
71.73
-20.41% src/rules/semi.ts
50
80.94
-10.72% src/utils/ast-utils.ts
43
86.57
-10.52% src/utils/style/tokenizer.ts
29
89.65
-8.65% src/shared/client-script/index.ts
27
95.21
-3.44% src/rules/prefer-object-class-list.ts
26
84.42
-13.56% src/utils/string-literal-parser/tokenizer.ts
25
52.63
-40.02% src/utils/resolve-parser/index.ts
24
46.67
-53.33% src/utils/resolve-parser/espree.ts
18
68.25
-31.75% src/rules/valid-compile.ts
17
86.75
-13.25% src/utils/transform/index.ts
16
94.51
-4.79% src/rules/prefer-split-class-list.ts
11
83.72
-13.75% src/rules/no-prerender-export-outside-pages.ts
10
88.97
-11.03% src/rules/no-unused-define-vars-in-style.ts
9
93.41
-6.13% src/a11y/rules.ts
8
91.41
-6.95% src/utils/fix-tracker.ts
7
90.32
-7.0% src/processor/index.ts
6
85.94
-14.06% src/utils/transform/less.ts
6
83.33
-16.67% src/utils/transform/sass.ts
6
84.75
-15.25% src/utils/transform/stylus.ts
5
91.46
-8.54% src/a11y/load.ts
4
95.09
-2.53% src/rules/no-unsafe-inline-scripts.ts
4
86.25
-5.05% src/utils/transform/lines-and-columns.ts
4
88.14
-10.05% src/utils/transform/postcss.ts
4
82.05
-15.09% src/utils/transform/utils.ts
2
96.55
-3.45% src/esm-config-builder.ts
2
94.83
-5.17% src/rules/no-deprecated-astro-fetchcontent.ts
2
96.0
-4.0% src/rules/prefer-class-list-directive.ts
2
95.98
-1.54% src/rules/sort-attributes.ts
2
92.31
-4.91% src/shared/index.ts
2
95.35
-4.65% src/utils/style/index.ts
Jobs
ID Job ID Ran Files Coverage
1 35085468051.1 16 Sep 2026 10:32AM UTC 59
89.5
GitHub Action Run
Source Files on build 35085468051
  • Tree
  • List 59
  • Changed 52
  • Source Changed 4
  • Coverage Changed 52
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35085468051
  • f3187f73 on github
  • Prev Build on main (#34260147900)
  • Next Build on main (#35167773666)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc