eslint-config-ma-shop
raw JSON → 0.5.2 verified Fri May 01 auth: no javascript maintenance
MarketAmerica SHOP.COM's base ESLint configuration, extending Airbnb's rules with minor modifications. Version 0.5.2 requires ESLint ^8.56.0 as a peer dependency. Designed for JavaScript projects without React plugins. The package is specific to the organization and not actively updated (last release 0.5.2).
Common errors
error Error: Cannot find module 'eslint-config-ma-shop' ↓
cause Missing package in node_modules or improper 'extends' prefix.
fix
Run 'npm install eslint-config-ma-shop --save-dev' and use 'extends': ['ma-shop'] without the 'eslint-config-' prefix.
error ESLint couldn't find the config "ma-shop" after the package was installed. ↓
cause Config resolution may fail if the package is not in node_modules or if using older ESLint.
fix
Verify the package is installed in node_modules and that ESLint version is compatible (^8.56.0).
error Configuration for rule "xxx" is invalid ↓
cause The config extends Airbnb but with modifications; some rules may conflict with other plugins.
fix
Check the actual config rules in the GitHub repo and ensure all required plugins are installed.
Warnings
deprecated Package may no longer be maintained; last release was 0.5.2 with no recent updates. ↓
fix Consider using more active configs like eslint-config-airbnb or eslint-config-google.
breaking Requires ESLint version 8.56.0 or higher; incompatible with ESLint 9.x due to flat config changes. ↓
fix Ensure ESLint is version 8.56.0 or later, or pin to a compatible version.
gotcha The config extends Airbnb's rules with modifications; unexpected overrides may occur if using other configs that extend Airbnb. ↓
fix Review the actual rules at https://github.com/ma-shop/lint-rules before depending on specific behavior.
gotcha The 'ma-shop' string in 'extends' is case-sensitive and must be exactly 'ma-shop'. ↓
fix Use 'ma-shop' (lowercase) in the extends array.
Install
npm install eslint-config-ma-shop yarn add eslint-config-ma-shop pnpm add eslint-config-ma-shop Imports
- config wrong
{ "extends": ["eslint-config-ma-shop"] }correct{ "extends": ["ma-shop"] } - require wrong
const config = require('eslint-config-ma-shop/config');correctconst config = require('eslint-config-ma-shop'); - default wrong
import { config } from 'eslint-config-ma-shop';correctimport config from 'eslint-config-ma-shop';
Quickstart
{
"name": "my-project",
"devDependencies": {
"eslint": "^8.56.0",
"eslint-config-ma-shop": "^0.5.2"
},
"eslintConfig": {
"extends": ["ma-shop"]
}
}