When I execute the following command in a root folder of a project, all the files recursively get run as I expect.
prettier --write "**/*.{js,ts}"
However, I want to ignore all folders that start with ./next or ./old in those subfolders. How can I do that? I've tried the commands below but they don't ignore those folders
prettier --write "**/*.{js,ts}" --ignore-path ".next"
prettier --write "/*.{js,ts}" --ignore-path "/.next"