Skip to content

Update Angular and React-Redux templates #17153

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

Conversation

rachelgshaffer
Copy link
Contributor

There are upcoming changes to Visual Studio's default ESLint configuration. The changes to the templates here ensure that there won't be any lint warnings for these project types.

@dnfclas
Copy link

dnfclas commented Nov 15, 2019

CLA assistant check
All CLA requirements met.

@Pilchie Pilchie added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Nov 18, 2019
@javiercn
Copy link
Member

@danroth27 Thoughts?

@mkArtakMSFT
Copy link
Contributor

Thanks for the PR, @rachelgshaffer.
The way we currently build these is we create new angular/react projects using appropriate framework CLI and use the content almost as is. It looks like this is going to impact that process, will it? Or are you planning to also submit similar PRs to the third-party projects to make sure the default projects they create accounts for these too?

@mkArtakMSFT mkArtakMSFT added this to the 5.0.0-preview1 milestone Nov 20, 2019
@rachelgshaffer
Copy link
Contributor Author

Ah I didn't realize these were generated files, thanks for pointing that out @mkArtakMSFT
I see there is a script for Angular here: src\ProjectTemplates\scripts\Run-Angular-Locally.ps1 but it's not clear where it's actually invoking the Angular CLI. Could you point me to any relevant code paths so I can understand how the CLI is called? I would greatly appreciate a breadcrumb. Thanks!

Copy link
Contributor

@ryanbrandenburg ryanbrandenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkArtakMSFT what she's doing won't interfere with our update Angular workflow (at least not any more than it already is).

@rachelgshaffer I could have sworn I reviewed this yesterday but apparently I didn't hit submit?

Anyway, overall this looks great. My only question is what ESLint rule the Layout.tsx changes fix and if there's any behavior change due to that fairly significant alteration.

Once I understand that better I can merge this in.

@rachelgshaffer
Copy link
Contributor Author

Thanks @ryanbrandenburg

For Layout.tsx the rule is react/display-name. Everything compiled and ran fine for me when I tested it.

@ryanbrandenburg
Copy link
Contributor

Sounds good about the react/display-name thing. It does seem there's a legit failure in the tests though:

19:83  error  Definition for rule '@typescript-eslint/no-explicit-any' was not found  @typescript-eslint/no-explicit-any

Should be fixable by adding "plugins": [ "@typescript-eslint" ] to the .eslintrc.json. You can check that it works locally by running yarn install && yarn lint.

I think it should be mergeable once that's done.

@ryanbrandenburg ryanbrandenburg merged commit 13db519 into dotnet:master Dec 3, 2019
@ryanbrandenburg
Copy link
Contributor

Thanks @rachelgshaffer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants