eslint-plugin-underscore-to-lodash

0.0.2 • Public • Published

eslint-plugin-underscore-to-lodash

Helps migrate a large codebase from underscore to lodash

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-underscore-to-lodash:

$ npm install eslint-plugin-underscore-to-lodash --save-dev

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

Usage

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

{
    "plugins": [
        "underscore-to-lodash"
    ]
}

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

{
    "rules": {
        "underscore-to-lodash/prefer-import-lodash": 2
    }
}

Supported Rules

prefer-import-lodash Lints when you have imported underscore instead of lodash. This is very handy for a large codebase migration, as it means all new files will have to use lodash, and existing underscore ones can be slowly migrated over.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    301

Package Sidebar

Install

npm i eslint-plugin-underscore-to-lodash

Weekly Downloads

252

Version

0.0.2

License

ISC

Unpacked Size

5.95 kB

Total Files

14

Last publish

Collaborators

  • charltongroves