Files
b353dfa42f chore: add initial ecosystem plugin tests workflow (#19643)
* chore: add initial ecosystem plugin tests workflow

* Apply suggestions from code review

Co-authored-by: Nicholas C. Zakas <[email protected]>

* Comments and structure

* Switch to nano-spawn, with plugins.json

* Revert unintentional docs/src/_data/further_reading_links.json changes

* Tweaked docs text for runCommand

* Added a script to update data

* Fix: errororing on error for unknown plugin

* Add weekly cron to update data

* Add comments to match index.mjs

* fix: .json files are formatted with two spaces

* Apply suggestions from code review

Co-authored-by: fisker Cheung <[email protected]>

* Added the once-a-week comment

* Default to all

* Mention the default of all

* npm run test:ecosystem:update

* rm duplicate .json

* DISCORD_CONTRIBUTORS_WEBHOOK

* Correct error message for all plugins

* Apply suggestions from code review

Co-authored-by: Percy Ma <[email protected]>

* Apply suggestions from code review

Co-authored-by: 루밀LuMir <[email protected]>
Co-authored-by: Percy Ma <[email protected]>

* Apply suggestions from code review

Co-authored-by: 루밀LuMir <[email protected]>

* Continue bumping to latest

* chore: formatting

* Finish migration off of chalk

* Remove nano-spawn

* Added typescript-eslint and docs

* Apply suggestions from code review

Co-authored-by: 루밀LuMir <[email protected]>

* More docs, and use prettier

* JSDoc correction

* Import sorting, while I'm in the area

* fix: proper cross-OS file path/URLs to package.json

* nit: proper comment placement

* 'local' ESLint, not 'built'

* further 'local'

* Add debug()

* NI_AUTO_INSTALL

* Update package.json

Co-authored-by: 唯然 <[email protected]>

* NI_DEFAULT_AGENT

* { NI_DEFAULT_AGENT: "npm" }

* Switch to hardcoded commands

* feat: granular failing

* fix: remove erroneous build scripts

* Bump to latest commits, and add quick summaries

* remove antfu/ni now

* remove markdown, typescript-eslint

* Apply suggestions from code review

Co-authored-by: Francesco Trotta <[email protected]>
Co-authored-by: 루밀LuMir <[email protected]>

* recursive

* correction: result(s); add to ignores

---------

Co-authored-by: Nicholas C. Zakas <[email protected]>
Co-authored-by: fisker Cheung <[email protected]>
Co-authored-by: Percy Ma <[email protected]>
Co-authored-by: 루밀LuMir <[email protected]>
Co-authored-by: 唯然 <[email protected]>
Co-authored-by: Francesco Trotta <[email protected]>
2026-04-27 20:14:39 +09:00

1.1 KiB

Ecosystem Tests

These tests run notable community plugins against the local ESLint repository. They're meant to validate that current changes to ESLint won't break downstream consumers.

Running

To build and test all plugins:

npm run test:ecosystem

To run on just one plugin:

npm run test:ecosystem -- --plugin <plugin-name>

Plugins are stored in plugins-data.json. Plugin names are keys from that file. For example, to test against @eslint/css:

npm run test:ecosystem -- --plugin @eslint/css

Debugging Commands

The debug package is used to surface the stdout of commands when DEBUG=test:ecosystem is enabled.

DEBUG=test:ecosystem npm run test:ecosystem -- --plugin @eslint/css

Updating

plugins-data.json contains pinned commit hashes for each repository. Those hashes can be updated with the same script run in CI.

To update all plugins:

npm run test:ecosystem:update

To update just one plugin:

npm run test:ecosystem:update -- --plugin <plugin-name>