1.0.0-alpha.1 • Published 2 years ago

eslint-plugin-lodash-specific-import v1.0.0-alpha.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-lodash-specific-import

Installation

You'll first need to install ESLint:

yarn add eslint -D

Next, install eslint-plugin-lodash-specific-import:

yarn add eslint-plugin-lodash-specific-import -D

Usage

Add lodash-specific-import to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "lodash-specific-import"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "lodash-specific-import/no-global": 2
    }
}

Rules

šŸ”§ Automatically fixable by the --fix CLI option.

NameDescriptionšŸ”§
no-globalenforce method-specific lodash importsšŸ”§
1.0.0-alpha.1

2 years ago