@medusajs/eslint-plugin 2.22.3-snapshot-20261030141225 → 2.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -32,7 +32,7 @@ export default defineConfig([...medusa.configs.recommended])
|
|
|
32
32
|
## Development
|
|
33
33
|
|
|
34
34
|
- `yarn build`, `yarn watch`, `yarn test` (jest over `src`).
|
|
35
|
-
- Single rule: `../../node_modules/.bin/jest src/rules/<rule-name>` from this directory (`yarn test <path>` ignores the path because the script already sets `--
|
|
35
|
+
- Single rule: `../../node_modules/.bin/jest src/rules/<rule-name>` from this directory (`yarn test <path>` ignores the path because the script already sets `--testPathPatterns=src`).
|
|
36
36
|
- Tests use `createRuleTester()` from `src/test-utils.ts`. Cross-file rules (`scheduled-job-name-unique`, `loader-must-be-exported-in-module-definition`, `use-validated-body-or-query`) need real files: use `createFixtureWorkspace(subPath, files)`, lint with the absolute path from `resolve(rel)`, and `afterAll(cleanupFixtureWorkspaces)`.
|
|
37
37
|
- Adding a rule:
|
|
38
38
|
1. `src/rules/<name>/` with `rule.ts`, `index.ts`, `__tests__/rule.spec.ts`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/eslint-plugin",
|
|
3
|
-
"version": "2.22.3
|
|
3
|
+
"version": "2.22.3",
|
|
4
4
|
"description": "Official ESLint plugin for Medusa projects. Enforces Medusa's framework conventions across API routes, modules, workflows, subscribers, jobs, admin extensions, and module links.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
|
|
22
22
|
"watch": "yarn run -T tsc --build --watch",
|
|
23
|
-
"test": "../../node_modules/.bin/jest --silent=false --bail --forceExit --
|
|
23
|
+
"test": "../../node_modules/.bin/jest --silent=false --bail --forceExit --testPathPatterns=src"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=22.22.0"
|