Easy way to configure nextjs eslint and prettier for vscode
Copy all contents here into main project folder (where package.json is located) then run:
npm i --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier prettier eslint
You can now run
prettier --write .
The command above will run prettier in all supported files on your project
That's it :)