@zedtech/zedkit-quality

Lint Node and TypeScript libraries

Spread eslint + typescript-eslint recommended, ban raw try/catch (point callers at `tryCatch` / `tryCatchAsync`), and ban deep `../..` imports in favor of `#*`…

At a glance

  • Who: Backend and library packages that share the same try/catch and import-depth rules as the monorepo root.
  • What: Spread eslint + typescript-eslint recommended, ban raw try/catch (point callers at tryCatch / tryCatchAsync), and ban deep ../.. imports in favor of #* subpaths.
  • Use when: When a package eslint.config.mjs today copies the root Node block from another repo.
  • Avoid when: When the package is UI-only (use Lint UI files for accessibility, Tailwind and tokens).
  • See also: Lint UI files for accessibility, Tailwind and tokens

Install

pnpm add @zedtech/zedkit-quality

Latest: 1.1.1 (via changesets).

Example

Usage
import { nodePreset } from "@zedtech/zedkit-quality/eslint";

export default [
  ...nodePreset(),
  { ignores: ["dist/**"] },
  { files: ["src/try-catch.ts"], rules: { "no-restricted-syntax": "off" } },
];

Wraps: @eslint/js, typescript-eslint

On this page