Cursor IDE Freezes When Saving Next.js Project with Prettier

Description:
I have a Next.js project with the following relevant dependencies (among others) that appear related to my Prettier/lint setup:

  • eslint: ^9
  • eslint-config-next: 15.1.6
  • eslint-config-prettier: ^4.3.0
  • eslint-plugin-prettier: 3.0.1
  • prettier: ^2.8.8
  • prettier-plugin-tailwindcss: ^0.3.0

Every time I save a file, Cursor IDE’s lint process runs and then the editor freezes or hangs with the message “Running lint editor”. I have to reboot the IDE, but the issue keeps happening. I’ve tried:

  • Node version 20.0.0 (and other versions)
  • Updating to the latest Prettier versions

No combination has solved the freezing issue.

Prettier Configuration (.prettierrc):

json

{
  "bracketSpacing": true,
  "endOfLine": "lf",
  "printWidth": 80,
  "semi": true,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "all",
  "plugins": ["prettier-plugin-tailwindcss"]
}

Steps to Reproduce:

  1. Open the Next.js project in Cursor IDE.
  2. Make any changes to a file.
  3. Save the file.
  4. The IDE shows “Running lint editor” and becomes unresponsive.

Expected Behavior:
The IDE should format the file (via Prettier) and complete linting without freezing.

Additional Context:

  • Next.js: 15.1.6
  • React: 19.0.0
  • React DOM: 19.0.0
  • TypeScript: ^5
  • Node: 20.0.0

Would appreciate any guidance or workaround!