Skip to content

fix: Unnecessary variables and ESLint errors  #3453

Closed

Description

@Ivan01925

Hi, while I was reading the code I found that there are variables that are never used:

image

In the file ls.js the function getChildren do a filter by the selected workspaces an other by edges types if shouldSkipChildren is false.

The function "filterByEdgesTypes" filter debs by type and allows for: npm ls [--dev, --prod, --link, etc.]

image

But the variables node and tree are never used by this function.

Also, the npx-cli.js file have problems related to ESLint style.

In order to prevent future errors and have a more clear code, if there is no problem, I will submit a pull request with the changes I did :)

Activity

  1. added
    💎 Free Internet Points 💎
    Enhancement
    Good First Issue
    semver:patch
    on Jun 23, 2021
  2. changed the title [-]Unnecessary variables and ESLint errors [/-] [+]fix: Unnecessary variables and ESLint errors [/+] on Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    💎 Free Internet Points 💎EnhancementGood First Issuesemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions