ignore.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. function a() {
  2. // prettier-ignore
  3. var fnString =
  4. '"' + this.USE + ' ' + this.STRICT + '";\n' +
  5. this.filterPrefix() +
  6. 'var fn=' + this.generateFunction('fn', 's,l,a,i') +
  7. extra +
  8. this.watchFns() +
  9. 'return fn;';
  10. // prettier-ignore
  11. const identity = Matrix.create(
  12. 1, 0, 0,
  13. 0, 1, 0,
  14. 0, 0, 0
  15. );
  16. // Let's make sure that this comment doesn't interfere
  17. // prettier-ignore
  18. const commentsWithPrettierIgnore = {
  19. "ewww":
  20. "gross-formatting",
  21. };
  22. function giveMeSome() {
  23. a( a ); // prettier-ignore
  24. // shouldn't I return something? :shrug:
  25. }
  26. // prettier-ignore
  27. console.error(
  28. 'In order to use ' + prompt + ', you need to configure a ' +
  29. 'few environment variables to be able to commit to the ' +
  30. 'repository. Follow those steps to get you setup:\n' +
  31. '\n' +
  32. 'Go to https://github.com/settings/tokens/new\n' +
  33. ' - Fill "Token description" with "' + prompt + ' for ' +
  34. repoSlug + '"\n' +
  35. ' - Check "public_repo"\n' +
  36. ' - Press "Generate Token"\n' +
  37. '\n' +
  38. 'In a different tab, go to https://travis-ci.org/' +
  39. repoSlug + '/settings\n' +
  40. ' - Make sure "Build only if .travis.yml is present" is ON\n' +
  41. ' - Fill "Name" with "GITHUB_USER" and "Value" with the name of the ' +
  42. 'account you generated the token with. Press "Add"\n' +
  43. '\n' +
  44. 'Once this is done, commit anything to the repository to restart ' +
  45. 'Travis and it should work :)'
  46. );
  47. // Incorrectly indented on purpose
  48. function f</* prettier-ignore */ T : B>(
  49. a : Array < number > // prettier-ignore
  50. ) {
  51. call(
  52. f( 1 )
  53. // prettier-ignore
  54. )
  55. }
  56. }
  57. const response = {
  58. // prettier-ignore
  59. '_text': 'Turn on the lights',
  60. intent: 'lights',
  61. };