function format()

in antora-ui-camel/gulp.d/lib/gulp-prettier-eslint.js [27:42]


  function format (file, enc, next) {
    if (file.isNull()) return next()
    if (file.isStream()) return next(new PluginError('gulp-prettier-eslint', 'Streaming not supported'))

    const input = file.contents.toString()
    const output = prettierEslint({ text: input, filePath: file.path })

    if (input === output) {
      report.unchanged += 1
    } else {
      report.changed += 1
      file.contents = Buffer.from(output)
    }

    next(null, file)
  }