@codacy/tools-eslint-9 0.23.1 → 0.25.0

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/README.md CHANGED
@@ -42,11 +42,12 @@ Pattern IDs use the codacy-eslint9 encoding: `_` → `__`, `/` → `_`. Examples
42
42
 
43
43
  ## Updating the ESLint version
44
44
 
45
- 1. Update `eslint` and related packages in `package.json`
45
+ 1. Update `eslint` and related packages in `devDependencies` of `package.json`, and `preferredVersion` in `src/metadata.ts`
46
46
  2. Run `pnpm install`
47
- 3. Run `pnpm prefetch` to check for new/removed rules
48
- 4. Run `pnpm test` to verify compatibility
49
- 5. If the major version changes, create a new adapter package (`eslint-10/`)
47
+ 3. Run `pnpm generate-payloads eslint-9` from the repo root to re-pin `payload/package.json` and regenerate its lockfile
48
+ 4. Run `pnpm prefetch` to check for new/removed rules
49
+ 5. Run `pnpm test` to verify compatibility
50
+ 6. If the major version changes, create a new adapter package (`eslint-10/`)
50
51
 
51
52
  ## Development
52
53
 
@@ -82,5 +83,5 @@ pnpm test # Run tests
82
83
  - The `config-builder.ts` generates flat config objects from Codacy patterns, grouping rules by plugin and setting up appropriate parsers. TypeScript files get `@typescript-eslint/parser`; Vue/Svelte/JSONC/YML files get appropriate file globs.
83
84
  - When no config or patterns are provided, the adapter falls back to `@eslint/js` recommended config.
84
85
  - `checkAvailability` imports the ESLint class and returns `ESLint.version`.
85
- - `install` is a no-op — the npm dependency handles installation.
86
+ - The tool is an npm _payload_, not a dependency: it is resolved at run time (a Codacy-managed install under `~/.codacy/tools/<id>/`, a `CODACY_TOOL_ROOT_<ID>` root, or this package's own `node_modules` in the monorepo) and `install` runs `npm ci` against the committed `payload/package-lock.json`. See `src/payload.ts`.
86
87
  - Peer dependency warnings from plugins not yet updated for ESLint 9 are expected and match the codacy-eslint9 wrapper behavior.