Skip to content

Clarify the rule "no-import-all-from-library" #94

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

Labels

Type

Fields

No fields configured for Task.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions