Registry / testing / eslint-config-enact

eslint-config-enact

JSON →
library5.1.0jsnpmunverified

ESLint configuration package for Enact applications, currently at version 5.1.0. This package provides a shareable ESLint flat config with Enact team's standard and strict rule sets. It targets Node ^20.12.0 || ^22.0.0 || >=24.0.0 and requires ESLint ^9.20.0. Key differentiators: opinionated rules for Enact framework, includes React, React Hooks, Babel, Jest, and Enact-specific plugins. Recent major updates: migrated to ESLint v9 flat config (v5.0.0-alpha.5), removed deprecated prop-types rule (v5.0.0-beta.1), and disabled React compiler-related rules (v5.0.3). Release cadence is irregular, with breaking changes in major versions.

npm install eslint-config-enact
INSTALL
IMPORT
SIG · ESLINT-CONFIG-ENAC
E
eslint-config-enact
testingjavascriptv5.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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
musl
node 18226 runs
build_error
glibc
node 18226 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.json
fix
Use 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-types
fix
Use 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.0
fix
Update Node to 20.12+ or use older config version.
affects: >=5.0.3
breakingReplaced deprecated rule no-new-object with no-object-constructor
fix
Update your custom rule configurations accordingly.
affects: >=5.0.0-alpha.2 <5.0.0
gotchaEnact config requires eslint-plugin-enact to be installed
fix
Install 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
fix
Run 'npm install eslint-config-enact --save-dev'
Failed to load config "enact" to extend from
Using deprecated eslintrc format (extends) instead of flat config
fix
Migrate 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
fix
Ensure you spread the array correctly: export default [...enact, { rules: {...} }];
Failed to load parser '@babel/eslint-parser'
Missing @babel/eslint-parser dependency
fix
Install @babel/eslint-parser as a dev dependency.
Upgrade
Version history
5.1.0latest on npm
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
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-enact — npm install eslint-config-enact · libregistry