Registry / testing / eslint-config-mx

eslint-config-mx

JSON →
library4.0.0jsnpmunverified

eslint-config-mx version 4.0.0 is a shareable ESLint configuration package from MX Technologies. It provides a set of predefined linting rules for JavaScript and React projects, leveraging @babel/eslint-parser for Babel support and including plugins for React and React Hooks. It is distributed via npm, follows semantic versioning, and is designed for simple integration via ESLint's extends feature. Compared to alternatives like eslint-config-airbnb, it focuses on MX's internal best practices and is opinionated but lightweight, with peer dependencies on eslint-plugin-react, @babel/eslint-parser, and eslint-plugin-react-hooks.

npm install eslint-config-mx
INSTALL
IMPORT
SIG · ESLINT-CONFIG-MX
E
eslint-config-mx
testingjavascriptv4.0.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-config-mx
✓ In .eslintrc: { "extends": "mx" }
✗ import config from 'eslint-config-mx'
This is a shareable config, not a module to import directly. Use the string 'mx' in the extends field.
eslintConfig-mx
✓ In package.json: { "eslintConfig": { "extends": "mx" } }
✗ require('eslint-config-mx')
Can be used in package.json eslintConfig field; do not require it.
default
✓ In .eslintrc.js: module.exports = { extends: ['mx'] }
✗ const config = require('eslint-config-mx').default
No default export; use extends string in config object.

Shows how to extend the MX ESLint config in different ESLint config formats and override rules.

// .eslintrc.json { "extends": "mx", "rules": { "semi": ["error", "always"], "no-console": "warn" } } // or .eslintrc.js module.exports = { extends: ['mx'], rules: { semi: ['error', 'always'], 'no-console': 'warn', }, }; // Ensure peerDependencies are installed: // npm install --save-dev eslint-plugin-react @babel/eslint-parser eslint-plugin-react-hooks
Debug
Known issues
brokenESLint config breaks with ESLint v9 or flat config format
fix
This config uses legacy config format. For ESLint v9, use eslint.config.js or wait for a flat config version of eslint-config-mx.
affects: >=4.0.0
deprecatedPeer dependency @babel/eslint-parser is required but may be missing in some setups
fix
Install @babel/eslint-parser as a dev dependency: npm install --save-dev @babel/eslint-parser
affects: >=4.0.0
gotchaThe config assumes Babel is used for parsing; projects without Babel may encounter parsing errors
fix
Ensure @babel/eslint-parser is configured correctly in your ESLint settings or use a different parser if not using Babel.
affects: >=4.0.0
gotchaThe config extends 'mx', not 'eslint-config-mx' in the extends field
fix
The string should be 'mx', not the full package name, when using the extends field in ESLint config.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-plugin-react'
Missing peer dependency eslint-plugin-react
fix
npm install --save-dev eslint-plugin-react
Error: ESLint configuration in .eslintrc.json is invalid: "extends": "eslint-config-mx"
Using the full package name instead of the shorthand 'mx' in extends
fix
Change extends to 'mx' (without 'eslint-config-' prefix)
Error: Could not find parser '@babel/eslint-parser'
Missing peer dependency @babel/eslint-parser
fix
npm install --save-dev @babel/eslint-parser
TypeError: Cannot read properties of undefined (reading 'react')
Missing eslint-plugin-react-hooks causing rule definition failure
fix
npm install --save-dev eslint-plugin-react-hooks
Upgrade
Version history
4.0.0latest on npm
Audit
Dependencies
eslint-plugin-reactrequiredRequired peer dependency for React linting rules
@babel/eslint-parserrequiredRequired peer dependency for parsing Babel-transpiled code
eslint-plugin-react-hooksrequiredRequired peer dependency for React Hooks linting rules
Agent activity
6 hits · last 30 days
node
6
Resources
eslint-config-mx — npm install eslint-config-mx · libregistry