Skip to content

.prettierignore isn't respected when using --stdin-filepath #3308

Closed

Description

@w0rp

Let's say you have a project configured like so.

node_modules/
.prettierignore <- contains `app/` as its only line
app/app.ts

If you run node_modules/.bin/prettier app/app.ts, prettier will return no output. If you run node_modules/.bin/prettier --stdin-filepath app/app.ts --stdin < app/app.ts, then prettier will return the modified text. Prettier should instead search upwards from --stdin-filepath to find the .prettierignore file. This is important for integrating prettier with editor plugins like ALE.

Activity

  1. added
    area:cli
    status:has pr
    on Nov 22, 2017
  2. added this to the 1.9 milestone on Nov 28, 2017
  3. added
    locked-due-to-inactivity
    on Jul 6, 2018
  4. locked as resolved and limited conversation to collaborators on Jul 6, 2018
  5. added theissue type on Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clilocked-due-to-inactivitystatus:has pr

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions