@commercetools-backend/eslint-config-node 27.4.1 → 27.4.2
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 +23 -0
- package/CHANGELOG.md +2 -0
- package/CLAUDE.md +4 -0
- package/package.json +1 -1
package/AGENTS.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @commercetools-backend/eslint-config-node
|
|
2
|
+
|
|
3
|
+
See root `AGENTS.md` for monorepo-wide context.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Shared ESLint flat-config preset for Node.js backend projects, consumed by downstream services using `@commercetools-backend/*` packages.
|
|
8
|
+
|
|
9
|
+
## Key Context
|
|
10
|
+
|
|
11
|
+
- Exports an ESLint 9 flat config array (not a legacy `.eslintrc` object). The entry point `index.js` includes runtime detection that warns if loaded from a legacy config file.
|
|
12
|
+
- Includes configs for Babel-parsed JS, TypeScript-parsed `.ts` files, Jest test files, and Prettier.
|
|
13
|
+
- The `helpers/eslint.js` file defines shared constants (status codes, supported extensions).
|
|
14
|
+
- The `migrations/` directory contains version-specific migration guides (e.g. `v27.md` for the flat config migration).
|
|
15
|
+
|
|
16
|
+
## How To Work Here
|
|
17
|
+
|
|
18
|
+
Follow root monorepo commands. This package has no build step and no tests -- changes are verified by linting downstream consumers.
|
|
19
|
+
|
|
20
|
+
## Divergences from Root
|
|
21
|
+
|
|
22
|
+
- Excluded from the preconstruct build pipeline. The entry point is `index.js` (plain CommonJS), not a `src/` directory compiled to `dist/`.
|
|
23
|
+
- No `src/` directory or TypeScript source -- all code is in root-level JS files.
|
package/CHANGELOG.md
CHANGED
package/CLAUDE.md
ADDED
package/package.json
CHANGED