Skip to content

--ignore-path doesn't work in new CLI #82

@maks-oleksyuk

Description

@maks-oleksyuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions