Skip to content

Instantly share code, notes, and snippets.

@michaelfortunato
Last active April 6, 2022 04:08
Show Gist options
  • Save michaelfortunato/d122bcc180c6ed0b8148f8db8b7f3753 to your computer and use it in GitHub Desktop.
Save michaelfortunato/d122bcc180c6ed0b8148f8db8b7f3753 to your computer and use it in GitHub Desktop.
Configuration for prettier
node_modules
**/.next/**
**/_next/**
**/dist/**
packages/next/bundles/webpack/packages/*.runtime.js
packages/next/compiled/**
packages/react-refresh-utils/**/*.js
packages/react-refresh-utils/**/*.d.ts
packages/react-dev-overlay/lib/**
**/__tmp__/**
lerna.json
.github/actions/next-stats-action/.work
packages/next/build/swc/tests/**/*
packages/next-codemod/transforms/__testfixtures__/**/*
packages/next-codemod/transforms/__tests__/**/*
packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts
packages/next-env/**/*.d.ts
test-timings.json
test/**/out/**
bench/nested-deps/pages/**/*
bench/nested-deps/components/**/*
# ignore all assets
**/public/**
# Ignore all yaml files
*.yaml
arrowParens: "avoid"
trailingComma: "none"
tabWidth: 2
useTabs: false
npm install --save-dev prettier
# in source code folder
npx prettier --write .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment