sheerun / prettier-standard

Formats with Prettier and lints with ESLint+Standard! (✿◠‿◠)
MIT License
867 stars 44 forks source link

Error: You must provide patterns to match outside of git repository #120

Closed h-nazzal closed 3 years ago

h-nazzal commented 3 years ago

I created this issue because there was no reference on the internet for this error (googling it returned no results at all).Additionally the documentation does not specifically instruct the user to install git.

long story short: If you see this error install git. and run git init

olastor commented 3 years ago

What is the rationale behind git being required in order to run this tool?

sheerun commented 3 years ago

@olastor It auto-formats files by default. It would not be safe to format files that are not in git in case any bugs are present. Think about it as backup-required rationale