Ignore next line

// prettier-ignore
console.log("Hello, World")

If using ESLint:

// eslint-disable-next-line prettier/prettier
console.log('foo')

Global ignore config

A plain text file.

  • .prettierignore e.g.
      build/
      *.html