For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt, and this page is available as Markdown at https://rslint.rs/api/configuration/global-ignores.md.
close

globalIgnores

globalIgnores creates a flat-config entry whose patterns apply across the entire configuration.

Example

import { defineConfig, globalIgnores, js } from '@rslint/core';

export default defineConfig([
  globalIgnores(['**/dist/**', '**/coverage/**']),
  js.configs.recommended,
]);

Behavior

The returned entry contains only ignores, which makes it a global ignore rather than an entry-level ignore. The argument must be a non-empty array; passing another value or an empty array throws a TypeError.

See the ignores reference for pattern and traversal semantics.