Repo: use default TypeScript `compilerOptions.lib` when testing rules

Author: abrahamguoCreated Jul 27, 2024Updated Sep 29, 2026
Labelsbugaccepting prswebsite: playground

Suggestion

Right now, in our rule tests for eslint-plugin, we use a non-default value for the compilerOptions.lib option, that, in particular, removes DOM.

This is different from the compilerOptions.lib used on the playground, which does include DOM. Because of this mismatch, the "Invalid" snapshots from docs-eslint-output-snapshots for two rules are missing ESLint errors that do show up on the playground:

Source: typescript-eslint/typescript-eslint