I have my own project structure, where the configuration for Prettier is stored in a configuration subfolder rather than in the project root.
When setting PRETTIER_EXPERIMENTAL_CLI=1 env, the --ignore-path parameter stops working as expected (everything works fine when using the old CLI).
My command looks like this:
/var/www/html/node_modules/.bin/prettier . -c --config-path=/var/www/html/config/utils/.prettierrc.json --ignore-path=/var/www/html/config/utils/.prettierignore --cache --cache-location=var/cache/prettier/prettier.cach
When moving the .prettierignore file to the root project directory, everything works fine.
Expected behavior:
The --ignore-path flag will work unchanged in the new CLI.
System parameters:
Prettier: 3.6.2
Node: 22.17.1
I have my own project structure, where the configuration for Prettier is stored in a configuration subfolder rather than in the project root.
When setting PRETTIER_EXPERIMENTAL_CLI=1 env, the
--ignore-pathparameter stops working as expected (everything works fine when using the old CLI).My command looks like this:
/var/www/html/node_modules/.bin/prettier . -c --config-path=/var/www/html/config/utils/.prettierrc.json --ignore-path=/var/www/html/config/utils/.prettierignore --cache --cache-location=var/cache/prettier/prettier.cachWhen moving the
.prettierignorefile to the root project directory, everything works fine.Expected behavior:
The
--ignore-pathflag will work unchanged in the new CLI.System parameters:
Prettier: 3.6.2
Node: 22.17.1