message: ci: Fix annotation for extra dependencies
diff: @@ -118,7 +118,9 @@ function formatErrorMessage(pkgFile, errors) {
  .join('\n');
  } else if (key === 'dependencies' || key === 'devDependencies') {
  const contents = fs.readFileSync(pkgFile).toString();
  - return errors[key]
  + return (
  + `${pkgFile}\n` +
  + errors[key]
  .map(packageName => {
  const line = findLineInFile(contents, packageName);
  const char = findCharacterInFile(contents, packageName);
  @@ -127,7 +129,8 @@ function formatErrorMessage(pkgFile, errors) {
  packageName
  )} is not used in code ${colors.dim('check-dependencies-exist')}`;
  })
  - .join('\n');
  + .join('\n')
  + );
  }
  })
  .join('\n\n');
  @@ -170,7 +173,7 @@ depCheck(modulePath, depCheckOptions, unused => {
  const result = {};
  errorKeys.forEach(key => (result[key] = unused[key]));
  - console.log(formatErrorMessage(file, result) + '\n');
  + console.log(`\n${formatErrorMessage(file, result)}\n`);
  process.exit(1);
  }).catch(err => {
  console.error(err);
  