Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
writeLine: console.log.bind(console)
};
logger.writeLine(chalk`{yellowBright Organizing imports...}`);
/**
* @type {Record}
*/
const projects = {};
for (const filePath of filePaths) {
const tsConfigFilePath = tsconfig.findSync(path.dirname(filePath));
const projectEntry = tsConfigFilePath && projects[tsConfigFilePath];
if (projectEntry) {
const sourceFile = projectEntry.project.getSourceFile(filePath);
if (sourceFile) {
if (projectEntry.files !== "all") {
projectEntry.files.push(sourceFile);
}
continue;
}
}
const ec = editorconfig.parseSync(filePath);
const manipulationSettings = getManipulationSettings(ec);
const detectNewLineKind = !!ec.end_of_line;