New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using types
, why is it necessary to specify a noop files
?
#706
Comments
Looks like there's ~3 misunderstandings on your part here -- I'll highlight them in the docs for you :) Neither that config, nor that config with From this:
That is, if you have Additionally, defaults: From this (this is for
That is, it'll inherit any value specified in the repository manifest and only if you override it will that change your outcome. The defaults are as you'd expect. From this:
That is, without specifying anything in The third piece to the puzzle is the defaults provided by the manifest: # From https://github.com/prettier/prettier/blob/133303f47a30f6b3e46ffdf9d5c2d6609d65c416/src/options.js#L32-L42
files: \.(css|less|scss|html|ts|tsx|graphql|gql|json|js|jsx)$ It's likely that this regex hasn't been updated as prettier originally used Putting it together, your manifest as written is asking for:
So an empty set. You may also be interested in this issue, though there are no current plans or ideas for implementation: #607 Thanks for the issue -- hope this was helpful. |
I see, thanks! As suggested: prettier/prettier#4021 |
…e-config [pre-commit.ci] pre-commit autoupdate
@chriskuehl
I'd expect something like this to match my stuff:
As evidenced, it doesn't: https://i.fluffy.cc/mMkBxvs5XF8Lbf8bxxXFRxWClBk8Cg58.html
This is because we apparently also need to add a
files: ''
Is this behavior intentional?
From reading the docs, it's not obvious that this is the case - maybe we could clarify this? :)
Thanks!
EDIT: Looks like this might just be #707
The text was updated successfully, but these errors were encountered: