code: function format(file, contents) {
    let linter = new tslint.Linter({ fix: true });
    let config = tslint.Configuration.findConfiguration(
      path.resolve(__dirname, '..', 'tslint.json'),
      __filename
    );
    linter.lint(file, contents, config.results);
    let result = linter.getResult();
  
    if (result.fixes.length === 0) {
      fs.writeFileSync(file, contents, { encoding: 'utf8' });
    }
  }
docs: /*
  Formats the string in accordance with our prettier rules to avoid
  test failures.