_isIgnoredFile(
		filePath,
		{ config: providedConfig, dotfiles = false, direct = false },
	) {
		const { configArrayFactory, defaultIgnores, ignoreFlag } =
			internalSlotsMap.get(this);

		if (ignoreFlag) {
			const config =
				providedConfig ||
				configArrayFactory.getConfigArrayForFile(filePath, {
					ignoreNotFoundError: true,
				});
			const ignores =
				config.extractConfig(filePath).ignores || defaultIgnores;

			return ignores(filePath, dotfiles);
		}

		return !direct && defaultIgnores(filePath, dotfiles);
	}
Check if a given file should be ignored.
@param {string} filePath The path to a file to check.
@param {Object} options Options
@param {ConfigArray} [options.config] The config for this file.
@param {boolean} [options.dotfiles] If `true` then this is not ignore dot files by default.
@param {boolean} [options.direct] If `true` then this is a direct specified file.
@returns {boolean} `true` if the file should be ignored.
@private