@zjedene-medusa/eslint-plugin
v2.16.1
Published
Official ESLint plugin for Medusa projects. Enforces Medusa's framework conventions across API routes, modules, workflows, subscribers, jobs, admin extensions, and module links.
Maintainers
Readme
@medusajs/eslint-plugin
Official ESLint plugin for Medusa projects. Codifies Medusa's framework conventions into automatically-enforced static checks across API routes, modules, workflows, subscribers, scheduled jobs, admin extensions, and module links.
Status: pre-release. The plugin currently ships with no rules — only the package scaffold and
recommended/strictconfig shapes. Rules will land incrementally; seeMEDUSA_LINT_RULES_CATALOG.mdat the repo root for the planned set.
Installation
npm install -D @medusajs/eslint-plugin eslinteslint is a peer dependency — install it in the consuming project.
Usage (flat config)
// eslint.config.js
import medusa from "@medusajs/eslint-plugin"
export default [...medusa.configs.recommended]Configs
recommended— default preset for Medusa projects.strict— extendsrecommendedand enables stricter, opt-in heuristics.
Development
yarn workspace @medusajs/eslint-plugin build
yarn workspace @medusajs/eslint-plugin test