ESLint plugin for Codecademy's Gamut design system, version 2.4.3 (stable, maintained). Provides rules and configurations tailored for Gamut applications, enforcing best practices for gamut-styles, gamut-icons, and other Codecademy libraries. Ships with TypeScript definitions. Part of the larger Gamut monorepo with regular releases. Differentiators: built-in presets for Gamut-specific patterns, seamless integration with Codecademy's design system.
npm install eslint-plugin-gamutVerified import paths — ran on the pinned version, not inferred.
Shows how to enable eslint-plugin-gamut in an ESLint config using recommended preset and a specific rule.
Update ESLint to 8+ and set `type: 'module'` in package.json, or use a bundler that handles ESM. For CJS projects, use dynamic import.
Update to gamut-styles v17 and adjust rules accordingly. Remove or replace any rules targeting gamut-styles v16.
Replace with `gamut/no-deprecated-assets` and update the configuration.
Run `npm install eslint-plugin-gamut --save-dev` and ensure node_modules is present.
Use `const plugin = require('eslint-plugin-gamut').default;` or switch to ESM imports.Use the config object: `extends: [require('eslint-plugin-gamut').configs.recommended]` or the new plugin prefix syntax: `'plugin:gamut/recommended'` if supported.