@commercetools-frontend/eslint-config-mc-app
v27.4.2
Published
ESLint config used by Merchant Center customizations.
Readme
@commercetools-frontend/eslint-config-mc-app
ESLint flat config (v9+) for Merchant Center customizations.
Requirements
- ESLint 9.x or higher
- Node.js 18.x, 20.x, or >=22.0.0
Migrations
See the migrations/ directory for version-specific upgrade guides. Each file is structured for both human and AI-assisted migration.
Install
pnpm add -D eslint @commercetools-frontend/eslint-config-mc-appUsage
Create an eslint.config.js file in your project root:
// eslint.config.js
const mcAppConfig = require('@commercetools-frontend/eslint-config-mc-app');
module.exports = [
...mcAppConfig,
// Add your custom config overrides here
];Note: This package uses ESLint's flat config format introduced in ESLint 9. If you're migrating from ESLint 8, you'll need to replace your
.eslintrc.jsfile witheslint.config.js.
