nest-cli
nest-cli copied to clipboard
Run lint/prettier after generating files
Hi there,
How can I tell generators to generate files with 4 spaces?
Thank you, Misha
I'm interested in configuring the generate
output too but in order to disable the semicolons. I like the two space indentation.
It would be awesome if the CLI were aware of the tslint / eslint conf file.
As a temporary workaround I'm appending this to all my generate
commands to achieve a similar result:
nest generate controller foo | awk '{print $2}' | sed 's/\///' | xargs node_modules/tslint/bin/tslint --fix
I think its too complex to adjust generator to obey everyone's code styles. Better pipe it through Prettier and thats it