JSPM

  • Created
  • Published
  • Downloads 755754
  • Score
    100M100P100Q182122F
  • License MIT

ESLint Plugin for use with the lodash library

Package Exports

  • eslint-plugin-lodash

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-lodash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ESLint-plugin-lodash

Travis Build Status devDependency Status

lodash specific linting rules for ESLint

Installation

Install ESLint either locally or globally.

npm install eslint

If you installed ESLint globally, you have to install lodash plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-lodash

The rules are specifically written to target ES6 JavaScript, so you'll want to use the babel-eslint parser.

Configuration

Add plugins section and specify ESLint-plugin-lodash as a plugin.

{
  "parser": "babel-eslint",
  "plugins": [
    "lodash"
  ]
}

Finally, enable all of the rules that you would like to use.

{
  "rules": {
    "lodash/import": 1,
  }
}

List of supported rules

  • import: Prevent importing the entire lodash library.

To Do

  • Add Contributing Guide, until then PRs welcome!

Any rule idea is welcome !

License

ESLint-plugin-lodash is licensed under the MIT License.