Skip to content
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

feat(core): add eslint vscode extension on eslint init #28573

Merged

Conversation

pumano
Copy link
Contributor

@pumano pumano commented Oct 23, 2024

Current Behavior

when create fresh angular or react integrated project no eslint extension out of the box. Few years ago I fill the issue #7047 about deprecated tslint extension looks like that has been deleted but without change to eslint extension

Expected Behavior

when I create angular / react project eslint extension should be added to recommended vscode extensions

Related Issue(s)

Fixes #

@pumano pumano requested a review from a team as a code owner October 23, 2024 00:47
@pumano pumano requested a review from Cammisuli October 23, 2024 00:47
Copy link

vercel bot commented Oct 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2024 9:29am

@pumano
Copy link
Contributor Author

pumano commented Oct 23, 2024

locally build and tests are OK

Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

This makes sense, but let's revert these changes in the @nx/workspace:new generator and instead, add the extension in the @nx/eslint:init generator. You can check how we do this in other generators (e.g. https://github.com/nrwl/nx/blob/master/packages/jest/src/generators/configuration/lib/update-vscode-recommended-extensions.ts).

@pumano
Copy link
Contributor Author

pumano commented Nov 14, 2024

@leosvelperez OK thank you, I will change it

@pumano pumano force-pushed the feat/add-eslint-extension-to-new-project branch from d90c933 to 32a312f Compare November 14, 2024 18:28
@pumano pumano requested a review from a team as a code owner November 14, 2024 18:28
@pumano pumano requested a review from leosvelperez November 14, 2024 18:28
@pumano pumano changed the title feat(core): add eslint extension to new project feat(core): add eslint vscode extension on eslint init Nov 14, 2024
Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

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

Almost there! Just a couple more comments.

packages/eslint/src/generators/init/init.spec.ts Outdated Show resolved Hide resolved
packages/eslint/src/generators/init/init.ts Outdated Show resolved Hide resolved
@pumano pumano force-pushed the feat/add-eslint-extension-to-new-project branch from 32a312f to a42d533 Compare November 15, 2024 09:20
@pumano pumano force-pushed the feat/add-eslint-extension-to-new-project branch from a42d533 to 2a98d28 Compare November 15, 2024 09:25
Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

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

Thank you!

@leosvelperez leosvelperez merged commit 0d6ad2b into nrwl:master Nov 15, 2024
6 checks passed
@pumano pumano deleted the feat/add-eslint-extension-to-new-project branch November 15, 2024 10:18
FrozenPandaz pushed a commit that referenced this pull request Nov 15, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
when create fresh angular or react integrated project no eslint
extension out of the box. Few years ago I fill the issue
#7047 about deprecated tslint extension
looks like that has been deleted but without change to eslint extension
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
when I create angular / react project eslint extension should be added
to recommended vscode extensions
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 0d6ad2b)
nartc pushed a commit that referenced this pull request Nov 15, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
when create fresh angular or react integrated project no eslint
extension out of the box. Few years ago I fill the issue
#7047 about deprecated tslint extension
looks like that has been deleted but without change to eslint extension
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
when I create angular / react project eslint extension should be added
to recommended vscode extensions
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants