A sharable ESLint plugin for SmartHR applications, providing a comprehensive set of accessibility (a11y), best-practice, and import-related lint rules. Version 6.13.0 is the latest stable, released in April 2026. Developed by KUFU (tamatebako), it includes auto-fixers for SmartHR UI migrations (e.g., v91→v92, v92→v93), barrel import enforcement, and over 30 rules. Requires ESLint 9 (peer dependency). Differentiates from generic eslint plugins by being specifically tailored to SmartHR's design system and conventions, with active maintenance (multiple releases per month) and a focus on accessibility and migration assistance.
npm install eslint-plugin-smarthrVerified import paths — ran on the pinned version, not inferred.
Shows how to install and configure eslint-plugin-smarthr using flat config, including recommended rules and custom rule settings.
Upgrade ESLint to ^9.0.0 or use eslint-plugin-smarthr v5 if ESLint 8 is required.
Migrate to flat config using eslint.config.js. See quickstart example.
Replace with 'best-practice-for-interactive-element' rule.
Use import syntax in an ES module (type: 'module' in package.json or .mjs extension).
Reference rules in config as 'smarthr/rule-name'.
Run: npm install --save-dev eslint-plugin-smarthr
Change to import statement in an ES module: import smarthr from 'eslint-plugin-smarthr'
Check rule name in the plugin documentation. Example: 'smarthr/a11y-anchor-has-href-attribute' (note hyphenation).