Skip to content

Instantly share code, notes, and snippets.

@scottsauber
Created August 29, 2018 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottsauber/54a5676dae8775768553dec36049ab4c to your computer and use it in GitHub Desktop.
Save scottsauber/54a5676dae8775768553dec36049ab4c to your computer and use it in GitHub Desktop.
const firstArray = [ 1, 2, 3]; // Prettier will still format this line with its defaults
// prettier-ignore
const secondArray = [
4,
5,
6
];
const somethingElse = 'blah';
// NOTE: prettier-ignore will only affect secondArray, not anything above or below secondArray.
@lkannan
Copy link

lkannan commented Feb 20, 2021

thanks scott

@scottsauber
Copy link
Author

Glad it helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment