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
lodash specific linting rules for ESLint
Installation
Install ESLint either locally or globally.
npm install eslintIf you installed ESLint globally, you have to install lodash plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-lodashThe 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 (or lodash-compat) library.
To Do
- Add Contributing Guide, until then PRs welcome!
License
ESLint-plugin-lodash is licensed under the MIT License.