1.1.0 • Published 10 years ago
eslint-plugin-no-require-lodash v1.1.0
eslint-plugin-no-require-lodash
Prevent require('lodash') in order to encourage things like require('lodash/collection/map').
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-no-require-lodash:
$ npm install eslint-plugin-no-require-lodash --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-require-lodash globally.
Usage
Add no-require-lodash to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"no-require-lodash"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-require-lodash/no-require-lodash": 2
}
}