ESLint config for Chart.js projects

raw JSON →
0.3.0 verified Sat Apr 25 auth: no javascript

Shareable ESLint configuration from the Chart.js team. v0.3.0 switches indent from tabs to 2 spaces and enables ES6 features. Release cadence is low; used primarily for maintaining Chart.js itself. Differentiator: official config that matches Chart.js coding style, including spacing, brace style, and ES6 enforcement. Supports extending in ESLint config files.

error Error: Cannot find module 'eslint-config-chartjs'
cause Package not installed or missing from devDependencies.
fix
Run 'npm install --save-dev eslint-config-chartjs'.
error Configuration for rule "no-unused-vars" is invalid: Value "warn" expects an object.
cause Overriding rules incorrectly in .eslintrc.
fix
Ensure rule values are valid; see ESLint docs for schema.
breaking Indent rule changed from tab to 2 spaces in v0.3.0.
fix Update your codebase to use 2-space indentation, or override the indent rule in your ESLint config.
deprecated This package is superseded by modern ESLint flat config; consider using eslint-config-chartjs's flat config version if available.
fix Migrate to eslint.config.js format; check for updated package.
gotcha Extends field in .eslintrc expects string 'chartjs', not the package name 'eslint-config-chartjs'.
fix Set extends: 'chartjs' (without the 'eslint-config-' prefix).
gotcha Config does not include React or JSX rules; do not use for React projects expecting JSX support.
fix Extend additional configs for React (e.g., eslint-plugin-react).
npm install eslint-config-chartjs
yarn add eslint-config-chartjs
pnpm add eslint-config-chartjs

Install the shareable config, then extend it in your ESLint config file.

npm install --save-dev eslint-config-chartjs