Skip to content

False positive on Rule "no-import-all-from-library" #94

@AMorgaut

Description

@AMorgaut

Current Behavior

When I import few functions from lodash, the linter raise an issue telling

You not import all from library lodash

Image

Expected Behavior

The code is respecting the rule, so it should not raise an issue here

Steps to Reproduce

  1. activate @credengo/eslint-plugin version 2.1
  2. add the code import { memoize, omitBy, isNil } from 'lodash'
  3. let the linter analyse the code
  4. See the raised issues

Failure Logs

> eslint src --fix


/......../src/api/my-code.js
  18:1  warning  You should not import all from library lodash  @creedengo/no-import-all-from-library

creedengo-javascript Version

2.1

SonarQube Version

N/A (directly used from eslint)

Metadata

Metadata

Assignees

No one assigned

    Labels

    💉 bug: unconfirmedPotential bugs that need replicating to verify.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions