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-mxVerified import paths — ran on the pinned version, not inferred.
Shows how to extend the MX ESLint config in different ESLint config formats and override rules.
This config uses legacy config format. For ESLint v9, use eslint.config.js or wait for a flat config version of eslint-config-mx.
Install @babel/eslint-parser as a dev dependency: npm install --save-dev @babel/eslint-parser
Ensure @babel/eslint-parser is configured correctly in your ESLint settings or use a different parser if not using Babel.
The string should be 'mx', not the full package name, when using the extends field in ESLint config.
npm install --save-dev eslint-plugin-react
Change extends to 'mx' (without 'eslint-config-' prefix)
npm install --save-dev @babel/eslint-parser
npm install --save-dev eslint-plugin-react-hooks