Skip to main content

🔷 TypeScript

Use to enable TypeScript parser defaults and TypeScript-aware linting behavior.

Config key​

sdl.configs.typescript;

Flat Config example​

import sdl from "eslint-plugin-sdl-2";

export default [...sdl.configs.typescript];

Rules in this preset​

  • Fix legend:
    • 🔧 = autofixable
    • ðŸ’Ą = suggestions available
    • — = report only
RuleFix
no-nonnull-assertion-on-security-input—
no-trusted-types-policy-pass-through—
no-unsafe-cast-to-trusted-types—