Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(linter): new eslint builder#3834

Merged
FrozenPandaz merged 3 commits intonrwl:masterfrom
JamesHenry:eslint-builder
Sep 30, 2020
Merged

feat(linter): new eslint builder#3834
FrozenPandaz merged 3 commits intonrwl:masterfrom
JamesHenry:eslint-builder

Conversation

@JamesHenry
Copy link
Collaborator

Current Behavior

The current ESLint builder that ships with Nx is a port of a port of the TSLint builder from angular-devkit. This originally made sense as a starting point to get things working.

However, that initial implementation has shown its limitations and it is doing a bunch of work that, whilst appropriate in the TSLint case, is not appropriate in the ESLint case.

Expected Behavior

This PR adds a new builder implementation alongside the existing one. This will give us the easiest path to providing the new functionality without requiring users to migrate straight away (although this PR will also provide an automated migration). By having two separate implementations, we can avoid having a single, complex implementation with a messy and hard to validate schema definition for the builder.

Related Issue(s)

This new builder should resolve (or at least help with):

#3310
#2784

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Sep 29, 2020

Nx Cloud Report

CI ran the following commands for commit eb16531. Click to see the status, the terminal output, and the build insights.

Status Command Start Time
#000000 nx build-base create-nx-plugin 9/30/2020, 12:02:55 AM
#000000 nx build-base express 9/30/2020, 12:03:02 AM
#000000 nx build-base nest 9/30/2020, 12:03:02 AM
#000000 nx build-base next 9/30/2020, 12:02:53 AM
#000000 nx build-base react 9/30/2020, 12:03:02 AM
#000000 nx build-base storybook 9/30/2020, 12:02:55 AM
#000000 nx run-many --target=build --all --parallel 9/30/2020, 12:02:05 AM
#000000 nx run-many --target=e2e --projects=e2e-angular,e2e-bazel 9/30/2020, 12:03:05 AM
#000000 nx run-many --target=e2e --projects=e2e-cypress,e2e-jest,e2e-nx-plugin 9/30/2020, 12:02:41 AM
#000000 nx run-many --target=e2e --projects=e2e-next 9/30/2020, 12:02:40 AM
#000000 nx run-many --target=e2e --projects=e2e-node 9/30/2020, 12:04:08 AM
#000000 nx run-many --target=e2e --projects=e2e-react 9/30/2020, 12:03:00 AM
#000000 nx run-many --target=e2e --projects=e2e-web,e2e-linter,e2e-storybook 9/30/2020, 12:02:40 AM
#000000 nx run-many --target=e2e --projects=e2e-workspace,e2e-cli 9/30/2020, 12:03:10 AM
#000000 nx run-many --target=lint --all --parallel 9/30/2020, 12:05:35 AM
#000000 nx run-many --target=test --all --parallel 9/30/2020, 12:02:35 AM

Sent with 💌 from NxCloud.

Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@evtk
Copy link

evtk commented Oct 11, 2020

@JamesHenry this might be a fairly stupid question, but If i wanted to migrate my NX installation from tslint to eslint, how can I apply the great stuff you have added recently.

I've tried: nx migrate update-eslint-builder-and-config on 10.3.0, but it tells me there are no migrations to run.

Any help appreciated!

@JamesHenry
Copy link
Collaborator Author

@evtk specifically here we are referring to using the new eslint builder in Nx vs the old eslint builder in Nx - tslint is not involved.

There is a larger effort I am working on around tslint -> eslint migration within Nx workspaces but that is not yet available and is a manual process for now.

@evtk
Copy link

evtk commented Nov 17, 2020

@JamesHenry okay james, thanks for reporting. I be watching any development progress on the TS -> ES migration part, since that is definitely something it would like to use NX for!

Doginal pushed a commit to Doginal/nx that referenced this pull request Nov 25, 2020
* feat(linter): new eslint builder

* chore(linter): move migration to linter, add implementation

Co-authored-by: Jason Jean <[email protected]>
@github-actions
Copy link
Contributor

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 Mar 21, 2023
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