Skip to main content

Function: isIgnoredByPresets()

isIgnoredByPresets(url, root, settings): boolean

Defined in: packages/cspell-lib/src/lib/presets/ignorePathPresets.ts:47

Check if the enabled ignorePathPresets ignore a file, by its path alone.

It does not look for nested worktrees: the globs from calcIgnorePathGlobs cover them.

Parameters​

url​

URL

the URL of the file.

root​

URL

the URL of the folder the presets apply to. Files outside it are not ignored.

settings​

CSpellSettings

the settings with ignorePathPresets.

Returns​

boolean

true if the file is ignored.