How to configure Prettier in Replit?

In this project I have a prettier config set in package.json, but it’s completely ignored when editing the JavaScript. The configuration works locally, and in other cloud IDE’s, but not Replit. The configuration defined should remove semi colons and double quotes from any JavaScript in that project.

Replit sandbox


./src/main.js should look like this:

1 Like

You should be able to add as a nix package instead, by entering
nix-env -iA nixpkgs.nodePackages.prettier in the shell.