How to describe path to files in package.json script for format it?

Viewed 95

In some guide I get next:

"format": "prettier --write 'src/**/*.{ts,tsx,scss,css,json}'",

but when I use it, I get error:

[error] No files matching the pattern were found: "'src/.{ts,tsx,scss,css,json}'".

I do it in React app, when my components are in src/components/component/index.tsx

How to configure proper path?

0 Answers
Related