I am not able t get prettier working.
Here is the script I added in package.json
"prettier:write": "prettier --write 'src/*.{ts}'"
and when I run npm run prettier:write, it says
npm run prettier:write
No files matching the pattern were found: "src/*.{ts}".
Here is my directory
I have also tried
prettier --write '/src/*.{ts}
and
prettier --write './src/*.{ts}
Try changing the pattern to:
"prettier:write": "prettier --write 'src/*.ts'",
1.4m articles
1.4m replys
5 comments
56.9k users