@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-qualityLatest: 1.1.1 (via changesets).
Example
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
Validate editor-entered title/description lengths
Friendly max-length validators and constants for SEO titles and descriptions.
Lint UI files for accessibility, Tailwind and tokens
Enforce a11y, Tailwind hygiene, tokens-only classes (no arbitrary px/rem, no raw focus:ring-N), no inline style, no forwardRef, no explicit any, and a 300/60 s…