Skip to content

Instantly share code, notes, and snippets.

@tynrare
Created March 2, 2020 15:32
Show Gist options
  • Select an option

  • Save tynrare/08d1bbe7fdff5ce48ae36387e8b160cf to your computer and use it in GitHub Desktop.

Select an option

Save tynrare/08d1bbe7fdff5ce48ae36387e8b160cf to your computer and use it in GitHub Desktop.
prettier js ignore range

According to docs you can't use ranges in js before v1.12.0+

Way to ignore range is simple - just scope it in

// prettier-ignore
{
 __value__["anyUglyShit"] ( { v : Math.sin  (Math.PI ) , y: 1})
var in_ANY_SHITTYSTYLE = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment