Registry / testing / eslint-config-ma-shop-react

eslint-config-ma-shop-react

JSON →
library0.5.0jsnpmunverified

React-specific ESLint configuration from marketamerica | SHOP.COM, extending eslint-config-ma-shop and Airbnb's React rules. Current version 0.5.0 (latest). Requires peer dependencies eslint ^8.56.0 and eslint-config-ma-shop *. Provides shared config for consistent React coding standards. Differentiator: tailored for internal use within the organization, opinionated based on Airbnb's guidelines. Release cadence: maintained as part of lint-rules monorepo.

testing
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Use the shorthand 'ma-shop-react' as the config name, not the full package name.

extends: ['ma-shop-react']

The repo encourages yarn, but npm also works. Use --dev to save as devDependency.

yarn add eslint-config-ma-shop-react --dev

Missing peers cause runtime errors. Double-check your eslint and eslint-config-ma-shop versions match the peer requirements.

Ensure eslint and eslint-config-ma-shop are installed. npm>=7 installs peer deps automatically, but for npm<7 or yarn, you may need to install them explicitly.

Shows installation and usage of the config by extending 'ma-shop-react' in ESLint configuration.

// Install dependencies npm install eslint eslint-config-ma-shop-react eslint-config-ma-shop --save-dev // .eslintrc.json or package.json eslintConfig { "extends": ["ma-shop-react"], "rules": { // Override rules here } }
Debug
Known footguns
deprecatedThe config is based on Airbnb's React lint rules which may be outdated for newer React versions (e.g., React 18+ hooks rules may have changed).
gotchaThe config name is 'ma-shop-react', not 'eslint-config-ma-shop-react'. Using the full name will not extend properly.
gotchaPeer dependency eslint-config-ma-shop must be installed separately. Not installing it causes the config to fail silently.
breakingESLint v9 flat config migration: This package does not support flat config (eslint.config.js). Using it with ESLint ^8 in flat config mode will break.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
8 hits · last 30 days
gptbot
3
ahrefsbot
2
Resources