Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import enact from 'eslint-config-enact'
✗ const enact = require('eslint-config-enact')
The package uses ESM and exports a flat config object since v5.0.0-alpha.5. CommonJS require is not supported.
enact
✓ import enact from 'eslint-config-enact'
This is the default export containing the standard config.
strict
✓ import { strict } from 'eslint-config-enact'
Named export for the stricter rule set. Available from v5 onwards.
Shows how to import the flat config and extend it in an eslint.config.js file.
// eslint.config.js
import enact from 'eslint-config-enact';
export default [
...enact,
{
rules: {
// your overrides
}
}
];
Debug
Known issues
breakingMigrated to ESLint v9 flat config and removed eslintConfig from package.jsonfixUse flat config format in eslint.config.js; see changelog for migration.
affects: >=5.0.0-alpha.5 <5.0.0
breakingRemoved deprecated rule enact/prop-typesfixUse standard React prop-types rule alternatively.
affects: >=5.0.0-beta.1 <5.0.0
breakingMinimum Node version changed to ^20.12.0 || ^22.0.0 || >=24.0.0fixUpdate Node to 20.12+ or use older config version.
affects: >=5.0.3
breakingReplaced deprecated rule no-new-object with no-object-constructorfixUpdate your custom rule configurations accordingly.
affects: >=5.0.0-alpha.2 <5.0.0
gotchaEnact config requires eslint-plugin-enact to be installedfixInstall eslint-plugin-enact as a dev dependency.
affects: >=5.0.0
Errors
Common errors & fixes
Cannot find module 'eslint-config-enact'
Package not installed or not in node_modules
fixRun 'npm install eslint-config-enact --save-dev'
Failed to load config "enact" to extend from
Using deprecated eslintrc format (extends) instead of flat config
fixMigrate to eslint.config.js and use import like: import enact from 'eslint-config-enact'; export default [...enact];
ESLintError: ConfigError: Config (unnamed): key "rules" must be an object
Incorrect usage of flat config spreading
fixEnsure you spread the array correctly: export default [...enact, { rules: {...} }]; Failed to load parser '@babel/eslint-parser'
Missing @babel/eslint-parser dependency
fixInstall @babel/eslint-parser as a dev dependency.
Audit
Dependencies
eslintrequiredPeer dependency required for ESLint configuration to work
eslint-plugin-reactoptionalRequired for React-specific linting rules
eslint-plugin-react-hooksoptionalRequired for React Hooks linting rules
eslint-plugin-babeloptionalRequired for Babel-related linting rules
eslint-plugin-jestoptionalRequired for Jest testing linting rules
eslint-plugin-enactoptionalRequired for Enact-specific linting rules
@babel/eslint-parseroptionalRequired for Babel parsing