npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@chartguard/eslint-plugin

v0.1.1

Published

ESLint 9 plugin: chart configs handed to Chart.js, ECharts or Highcharts, checked in source (partial, CG-06-03)

Readme

@chartguard/eslint-plugin

Three rules: valid-config, config-warnings and chart-quality.

Status: pre-release (0.x). Coverage is partial, and the API and settings may still change between minor versions.

npm install --save-dev @chartguard/eslint-plugin
// eslint.config.js
import chartguard from '@chartguard/eslint-plugin';

export default [
	chartguard.configs.recommended,
	{
		settings: {
			chartguard: {
				libraryVersion: { chartjs: 'auto' },
				extensions: { chartjs: [{ id: 'zoom', options: { 'chartjs.plugins': { zoom: { kind: 'object', properties: {} } } } }] },
				patterns: [{ id: 'acme.make-chart', library: 'chartjs', module: '@acme/charts', export: 'makeChart', argument: 0 }],
				quality: { rules: { 'value-axis-untitled': 'warning' } }
			}
		}
	}
];
  • chartguard/valid-config (recommended: error) reports what the validator confirms is wrong.
  • chartguard/config-warnings (recommended: warn) reports unknown keys (with a suggestion), deprecations, values without effect, unknown variants and version notes. eslint --fix applies the runtime's own renames (clockWise → clockwise), and only where nothing else can read the edited object: the key is written in the call that hands the config to the library, the config was read completely, and no other key of that name is set.
  • chartguard/chart-quality (recommended: warn) reports the quality review's warnings for configs read completely: advisory, they depend on context. A verified edit (min: 5 → min: 0 for bars) is offered as a suggestion in the editor and never applied by --fix: it changes the drawing.
  • Info findings are no claim and are never reported (quality rules can be raised to warning in settings.chartguard.quality).
  • What is checked: the configs a file hands to Chart.js (new Chart), ECharts (setOption on init), Highcharts (Highcharts.chart and the other factories), the React wrappers (react-chartjs-2, echarts-for-react, highcharts-react-official), the ChartGuard runtime wrappers and the wrappers patterns names, found by where the callee is imported from (ES modules and require). A variable merely named config is not checked.
  • Each finding stands at the range that wrote the value it is about. The file is read as ESLint holds it, by TypeScript, without running anything; a file TypeScript cannot parse (Flow, a Vue single-file component) yields nothing.
  • By default one file at a time: an imported value is unknown, so a config built from one is validated as incomplete input, is never reported as missing a key, gets no quality review and no fix. With project: true (or a tsconfig path) each file is read with its project's tsconfig through its imports; a value written in another file is reported at the use, naming where it was written, and is never edited. The first file of a project pays for reading it (seconds in a large project), the next ones only for what changed.
  • Highcharts: a file is checked with the schema built for exactly the version its project installs (chartguard schema build --library highcharts), else with the curated subset (partial).
  • settings.chartguard:
    • libraryVersion: exact versions by library, or "auto" for the version installed for the linted file (an uninstalled library a file uses stops the lint with the reason);
    • registries: what your tree-shaken runtime registered;
    • extensions: plugin schemas by library, as --plugin-schema takes them (Highcharts takes them with its built schema only);
    • patterns: your own wrappers (module a package name);
    • quality: rule levels, ignores, page context and ruleset, as quality --settings takes them;
    • project: true for each file's nearest tsconfig, or a tsconfig path relative to ESLint's working directory. Settings that cannot be used stop ESLint with every problem listed.
  • "auto" reads the install, not a lockfile: under Yarn PnP name the version.