This repository contains scripts for downloading and analyzing ESLint plugin repositories in order to understand the state of the ecosystem.
Clone this repository.
git clone ...
You'll need a GitHub access token with public_repo
scope.
export GITHUB_AUTH=...
Retrieve the list of the top-1,000 ESLint repositories from GitHub and clone them to the output/
folder in this repository. This takes about one second per repository.
yarn download
About the results:
- 1,000 is the maximum number of search results returned by GitHub
- Results are ordered by best match (higher-quality, better-maintained repositories first)
Generate statistics about the downloaded repositories.
yarn analyze
Current statistics:
- Average number of rules per plugin
- Rule type breakdown (object vs. function rule)
- Rule option breakdown (% of rules that have options and % that are missing a schema)
The statistic are provided for different segmentations of the data:
- Top 100 Plugins
- Top 1000 Plugins, Updated Last 1 Year
- Top 1000 Plugins, Updated Last 2 Years
- Top 1000 Plugins