iScsc / iscsc.fr

The iScsc website, build with passion by wannabe devs 🔥
GNU General Public License v3.0
4 stars 12 forks source link

`npm run pretty` not supported on Windows #105

Open atxr opened 1 year ago

atxr commented 1 year ago

I installed prettier, and it works, but the rule doesn’t. When I do npm run pretty in the main folder of the repo, I get this:

iscsc.fr@0.1.2 pretty
npx prettier --write ‘**/*.{js,md,yml,css,html}’ ‘!mongodb/**’
[error] No files matching the pattern were found: “‘**/*.{js,md,yml,css,html}’”.
[error] No files matching the pattern were found: “‘!mongodb/**’”.

I’m on Windows. I googled this error, and it may have sth to do with the quotes.

I copied the readme file to another folder and was able to format it with prettier --write. I tried it on a copy for now, because I thought you’d prefer people to run the script. Let me know if it makes any difference. If not, I’ll format the file and push it. Or let me know if I need to do anything to make the rule work on my computer.

Originally posted by @OlaPom in https://github.com/iScsc/iscsc.fr/issues/96#issuecomment-1551000008