Enact specific linting rules for ESLint, designed for applications built with the Enact framework (LG webOS). Current stable version is 2.0.4, released in 2024. The plugin provides rules like kind-name, display-name (superseding react/display-name), and no-module-exports-import. It requires ESLint >=9.0.0 and Node >=20.0.0 or >=22.0.0. Key differentiator: it prevents false-flagging of Enact components (kind, hoc) by standard React lint rules, making it essential for Enact projects. Release cadence is irregular; minor updates focus on dependency bumps. Only supports flat config (ESLint v9+), breaking from v1's legacy config.
npm install eslint-plugin-enactVerified import paths — ran on the pinned version, not inferred.
Configures Enact ESLint plugin in flat config with three rules and custom settings for kind/hoc detection.
Migrate to flat config (eslint.config.js) and upgrade ESLint to v9+.
Use Node 20 or 22+.
Disable the rule or migrate to react/prop-types if needed.
Disable the react/display-name rule in your ESLint config.
Use regex strings (e.g., 'kind' or '/^kind$/') in the settings object.
Run `npm install eslint-plugin-enact --save-dev` and ensure node_modules path is correct.
Check available rules: 'enact/kind-name', 'enact/display-name', 'enact/no-module-exports-import'. Remove unknown rule.
Use flat config: `import enact from 'eslint-plugin-enact'` and spread enact.configs.recommended if available.