{"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,"search_vec":"'2':19 'brace':45 'cadenc':26 'chart.js':4,11,33,40 'code':41 'config':2,37,54 'configur':8 'differenti':35 'enabl':22 'enforc':49 'es6':23,48 'eslint':1,7,53 'extend':51 'featur':24 'file':55 'includ':43 'indent':15 'javascript':56 'low':28 'maintain':32 'match':39 'offici':36 'primarili':30 'project':5 'releas':25 'shareabl':6 'space':20,44 'style':42,46 'support':50 'switch':14 'tab':17 'team':12 'use':29 'v0.3.0':13","created_at":"2026-04-25T11:18:06.993991+00:00","updated_at":"2026-04-25T11:18:06.993991+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://www.chartjs.org","github":"https://github.com/chartjs/eslint-config-chartjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-chartjs","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}