generator-generator icon indicating copy to clipboard operation
generator-generator copied to clipboard

Consider adding a .prettierignore file

Open danielo515 opened this issue 8 years ago • 3 comments

Hello,

Thanks for this generator. However, it can be a bit frustrating when you start using it. The reason is because JSON template files are being piped through prettier on every commit. Obviously, template files do not pass any JSON linter. According to prettier documentation is as easy as adding a .prettierignore file. The content should be **/templates

I tried it and works like a charm.

Thanks in advance

danielo515 avatar Oct 28 '17 16:10 danielo515

Good idea. Would you like to create an PR for that?

mischah avatar Oct 28 '17 18:10 mischah

Sure ! Where should I add the file ? On the main generator or in the subgenerator?

danielo515 avatar Oct 29 '17 10:10 danielo515

I'd say main generator probably. Prettier is added by generator-node, and generator-generator is composed on top of that one.

SBoudrias avatar Oct 29 '17 10:10 SBoudrias