{"id":19497,"library":"eslint-config-chartjs","title":"ESLint config for Chart.js projects","description":"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.","status":"active","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/chartjs/eslint-config-chartjs","tags":["javascript"],"install":[{"cmd":"npm install eslint-config-chartjs","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-chartjs","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-chartjs","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESLint configs are used via extends field, not imported directly.","wrong":"// Wrong: using require() in .eslintrc\\nmodule.exports = { extends: ['chartjs'] };","symbol":"config","correct":"// In .eslintrc.\\n{\"extends\": \"chartjs\"}"},{"note":"Actually, there is no setParserOptions export; this is a shareable config only. No direct functions are exported.","wrong":"const setParserOptions = require('eslint-config-chartjs');","symbol":"setParserOptions","correct":"import { setParserOptions } from 'eslint-config-chartjs';"}],"quickstart":{"code":"npm install --save-dev eslint-config-chartjs","lang":"javascript","description":"Install the shareable config, then extend it in your ESLint config file."},"warnings":[{"fix":"Update your codebase to use 2-space indentation, or override the indent rule in your ESLint config.","message":"Indent rule changed from tab to 2 spaces in v0.3.0.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Migrate to eslint.config.js format; check for updated package.","message":"This package is superseded by modern ESLint flat config; consider using eslint-config-chartjs's flat config version if available.","severity":"deprecated","affected_versions":"<=0.3.0"},{"fix":"Set extends: 'chartjs' (without the 'eslint-config-' prefix).","message":"Extends field in .eslintrc expects string 'chartjs', not the package name 'eslint-config-chartjs'.","severity":"gotcha","affected_versions":">0.1.0"},{"fix":"Extend additional configs for React (e.g., eslint-plugin-react).","message":"Config does not include React or JSX rules; do not use for React projects expecting JSX support.","severity":"gotcha","affected_versions":">0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save-dev eslint-config-chartjs'.","cause":"Package not installed or missing from devDependencies.","error":"Error: Cannot find module 'eslint-config-chartjs'"},{"fix":"Ensure rule values are valid; see ESLint docs for schema.","cause":"Overriding rules incorrectly in .eslintrc.","error":"Configuration for rule \"no-unused-vars\" is invalid: Value \"warn\" expects an object."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}