UNPKG

typescript-strict-plugin

Version:

Typescript tools that help with migration to the strict mode

16 lines (15 loc) 509 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isFileStrictByPath = void 0; const isFileOnPath_1 = require("./isFileOnPath"); function isFileStrictByPath({ filePath, projectPath, configPaths, }) { if (configPaths === undefined) { return true; } return configPaths.some((strictPath) => (0, isFileOnPath_1.isFileOnPath)({ filePath, targetPath: strictPath, projectPath, })); } exports.isFileStrictByPath = isFileStrictByPath;