-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
I'm submitting a...
- Regression
- Bug report
- Feature request
- Documentation issue or request (new chapter/page)
- Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Several issues:
- The
--strictflag onnest new --strictwas added in nestjs/nest-cli#1344 but this wasn't accompanied with a corresponding update of the docs. - Introductory pages keep suggesting to create new NestJS projects with
nest new project-name, without mentioning the possibility of using--strict, which is actually a very desirable thing to do for most new projects for devs that care about proper type safety. As a consequence, the possibility of--strictis lost even for seasoned TypeScript programmers who are new to NestJS.
Expected behavior
- Document the
--strictflag on the command reference page: CLI / Usage / nest new. - Propose using the command
nest new --strict project-namein introductory pages: Introduction / Installation and Overview / First steps / Setup. Possibly adding a note, stating that for devs who are new to TypeScript, they might want to ease their learning curve by skipping the--strictflag, but that doing so is not recommended for stronger type safety.
Minimal reproduction of the problem with instructions
N/A
What is the motivation / use case for changing the behavior?
- Better discoverability of the
--strictflag. - Promotion of better defaults for new projects, by encouraging to enable strict null checks on new projects.
Environment
For Tooling issues:
N/A
Others:
N/A
Metadata
Metadata
Assignees
Labels
No labels