Skip to content

support dot pattern for CLI #6085

@alexander-akait

Description

@alexander-akait

Environments:

  • Prettier Version: 1.17.0
  • Running Prettier via: CLI
  • Runtime: Node.js
  • Operating System: no matter

Steps to reproduce:

node_modules/.bin/prettier . --write

Expected behavior:

Format all supported files.

Actual behavior:

output:

[error] No matching files. Patterns tried: . !**/node_modules/** !./node_modules/** !**/.{git,svn,hg}/** !./.{git,svn,hg}/**

Additional info:

All popular linters (like stylelint and eslint) support . pattern. I think we should do same. I don't want have list of globs. It is good for DX and 0CJS configuration.

/cc @prettier/core What do you think? I can take care about this and send a PR.

Metadata

Metadata

Assignees

Labels

area:cliIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions