@medusajs/eslint-plugin

2.21.2

2.21.1

Patch Changes

2.21.0

Patch Changes

2.20.1

2.20.0

Patch Changes

2.19.0

Patch Changes

2.18.0

Patch Changes

  • 598020c157cec9b9905f7817c3cded4aa44ece94 - fix(eslint-plugin): normalize Windows paths in cross-module relationship rule

  • fdf80069f11c23b6ec458119934251db5e6fce85 - feat(eslint-plugin): add a rule for wildcard + specific field selections in query

  • 8df11805fc51f4818647da433021c4fa7f6004f1 - Remove the use-query-context-utility rule. It required wrapping the entire query.graph / query.index context object with QueryContext(...), but the correct placement is query-specific: pricing queries wrap the calculated_price leaf (context: { variants: { calculated_price: QueryContext(...) } }), while others (such as shipping options) wrap the whole context. As written, the rule flagged correct pricing code and autofixed it into a runtime error (Trying to query by not existing property Product.context), contradicting the official docs and the framework's own usage. Correct placement cannot be determined generically, so the rule is removed. Fixes #15821.

2.17.2

Patch Changes

2.17.1

2.17.0

Patch Changes

2.16.0

Patch Changes