next.js
007058ef - Lint devlow-bench with the root eslint config (#96871)

Commit
39 days ago
Lint devlow-bench with the root eslint config (#96871) Follow-up to #96860, addressing @lukesandberg's review. That PR moved `devlow-bench` into `packages/`, where the root eslint config applies for the first time, and exempted the package from the three rules it didn't satisfy rather than fixing the violations. This drops the exemption block: - **`import/no-extraneous-dependencies`** — had no violations. The exemption was unnecessary. - **`@typescript-eslint/consistent-type-imports`** — 13 violations, all autofixable. - **`@typescript-eslint/no-shadow`** — 17 violations, renamed by hand. The shadow fixes are mostly loop variables and callback parameters that restated their outer binding. Two worth a look: - `table.ts` — `getValue(data, ...)` took a single entry but shadowed the `data` array it indexes into. Renamed the parameter to `entry`, and the `row`/`column` grouping keys to `rowKey`/`columnKey` so the loop variables can keep the shorter names. - `shell.ts` — `command(command, args)` shadowed the exported function with its own first parameter. Renamed to `executable`, which also fixes the `[SHELL]` debug log that was interpolating the function rather than the argument. ## Verification - `eslint` clean under both the root config and the package's own `lint` script - `tsc` compiles, `pnpm run --filter=devlow-bench test` 3/3 - prettier clean <!-- NEXT_JS_LLM --> --------- Co-authored-by: Luke Sandberg <lukesandberg@users.noreply.github.com>
Author
Parents
Loading