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.

npm install eslint-config-ma-shop-react
INSTALL
IMPORT
SIG · ESLINT-CONFIG-MA-S
E
eslint-config-ma-shop-react
testingjavascriptv0.5.0
harness data pending
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.

Config
extends: ['ma-shop-react']
extends: ['eslint-config-ma-shop-react']
Use the shorthand 'ma-shop-react' as the config name, not the full package name.
npm install
yarn add eslint-config-ma-shop-react --dev
npm install eslint-config-ma-shop-react --save-dev
The repo encourages yarn, but npm also works. Use --dev to save as devDependency.
peerDependencies
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.
Installing only eslint-config-ma-shop-react without its peers.
Missing peers cause runtime errors. Double-check your eslint and eslint-config-ma-shop versions match the peer requirements.

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 issues
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).
fix
Consider using more up-to-date configs like eslint-config-airbnb or eslint-config-react-app.
affects: >=0.4.0
gotchaThe config name is 'ma-shop-react', not 'eslint-config-ma-shop-react'. Using the full name will not extend properly.
fix
Use 'ma-shop-react' in your 'extends' array.
affects: >=0.0.0
gotchaPeer dependency eslint-config-ma-shop must be installed separately. Not installing it causes the config to fail silently.
fix
Run 'npm install eslint-config-ma-shop --save-dev' or add it to your project if using npm<7.
affects: >=0.0.0
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.
fix
Switch to eslintrc format (.eslintrc.*) or upgrade to a package that supports flat config.
affects: >=0.5.0
Errors
Common errors & fixes
ESLint couldn't find the config "ma-shop-react". Check that the package name is correct and the package is installed.
Missing eslint-config-ma-shop-react or using wrong extends name.
fix
Install the package: npm install eslint-config-ma-shop-react --save-dev, then use 'ma-shop-react' in extends.
Failed to load config "ma-shop-react" to extend from.
Missing peer dependency eslint-config-ma-shop.
fix
Install eslint-config-ma-shop: npm install eslint-config-ma-shop --save-dev.
Cannot find module 'eslint-config-ma-shop'
eslint-config-ma-shop is not installed.
fix
Run: npm install eslint-config-ma-shop --save-dev
Upgrade
Version history
0.5.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency for ESLint version
eslint-config-ma-shoprequiredpeer dependency extending base config
Agent activity
7 hits · last 30 days
node
6
Resources
eslint-config-ma-shop-react — npm install eslint-config-ma-shop-react · libregistry