1.0.4 • Published 6 years ago

eslint-plugin-no-global-lodash v1.0.4

Weekly downloads
135
License
MIT
Repository
github
Last release
6 years ago

eslint-plugin-no-global-lodash

view on npm Build Status

Lodash should not be loaded globally. If a lodash method is needed only the package for that method should be loaded in the file.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

or

  yarn add -D eslint

Next, install eslint-plugin-no-global-lodash:

  npm install eslint-plugin-no-global-lodash --save-dev

or

  yarn add -D eslint-plugin-no-global-lodash

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-global-lodash globally.

Usage

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

{
    "plugins": [
        "no-global-lodash"
    ]
}

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

{
    "rules": {
        "eslint-no-global-lodash/no-global-lodash": 2
    }
}

Supported Rules

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago