When trying to run npm run lint
, an error is thrown:
[error] No files matching the pattern were found: "'src/**/*.{ts,tsx,scss}'".
Looks like prettier doesn't like single quotes (at least in powershell). Changed it to (escaped) double quotes and everything worked as expected.
- "lint": "prettier --check --write 'src/**/*.{ts,tsx,scss}' && npm run lint:es",
+ "lint": "prettier --check --write \"src/**/*.{ts,tsx,scss}\" && npm run lint:es",
Unfortunately, this also means that I now have 100 formatting changes on top of my existing ones, but I think I can handle it :D
I can't tell whether prettier used an incorrect style guide on my machine, or whether it has never been executed before. Could you look into that?