Skip to content

feature: run ng lint with --project flag by default or add config option #10013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hotell opened this issue Mar 19, 2018 · 3 comments
Closed
Labels
area: @schematics/angular feature Issue that requests a new feature

Comments

@Hotell
Copy link

Hotell commented Mar 19, 2018

Versions

Angular CLI: 1.7.3
Node: 8.10.0
OS: darwin x64
Angular: 5.2.9

Repro steps

  • add tslint rule that needs to run type checker, let's say 'no-use-before-declare':true
  • set "lintFix": true to angular-cli.json defaults
  • ng g c helloWorld

Observed behavior

ng g c helloWorld 

will generate component and ng lint will be run, which will produce warning because ng lint is not run with --project flag

image

Desired behavior

Run ng lint with --project as default or provide configuration option for it in angular-cli.json

@hansl
Copy link
Contributor

hansl commented Jun 7, 2018

Hi @Hotell ,

Something I find confusing in this report; the --project flag was added to Angular CLI 6.0 but you're reporting this issue for 1.7.3. Did you update your workspace?

In any case, I'm marking this as a feature request and it's something we should consider. Thanks!

@filipesilva
Copy link
Contributor

As far as I know this doesn't happen anymore. Let me know if it's still the case.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @schematics/angular feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

4 participants