ð· 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â
Fixlegend:ð§= autofixableðĄ= suggestions availableâ= report only
| Rule | Fix |
|---|---|
no-nonnull-assertion-on-security-input | â |
no-trusted-types-policy-pass-through | â |
no-unsafe-cast-to-trusted-types | â |