UNPKG

typescript-strict-plugin

Version:

Typescript tools that help with migration to the strict mode

15 lines (14 loc) 621 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isFileExcludedByPattern = void 0; const isFileMatchedByPattern_1 = require("./isFileMatchedByPattern"); function isFileExcludedByPattern({ filePath, configExcludePattern, }) { if (configExcludePattern === undefined) { return false; } return configExcludePattern === null || configExcludePattern === void 0 ? void 0 : configExcludePattern.some((pattern) => (0, isFileMatchedByPattern_1.isFileMatchedByPattern)({ filePath, pattern, })); } exports.isFileExcludedByPattern = isFileExcludedByPattern;