js
js exposes presets for Rslint's built-in implementation of supported ESLint 10.x core rules. Its preset is based on the configuration published by @eslint/js 10.x.
Presets
See Rules & Presets for guidance on choosing and layering presets.
Differences from ESLint
Unlike the upstream preset, js.configs.recommended intentionally omits no-undef.
The rule is only accurate when all globals provided by browsers, Node.js, and other environments are declared in the configuration. Because a general-purpose preset cannot know which environments apply to each file, enabling the rule by default would report valid global references until users add the corresponding environment-specific configuration.
To enable this check, declare the globals available to matching files first: