npm install --save-dev eslint
npm install --save-dev eslint-plugin-you-dont-need-lodash-underscore
"plugins": ["you-dont-need-lodash-underscore"],
If you already have plugins installed, just add to the array.
"plugins": ["react", "you-dont-need-lodash-underscore"],
You can enable or disable individual rules.
"rules": {
"you-dont-need-lodash-underscore/for-each": "error",
"you-dont-need-lodash-underscore/concat": "warn",
"you-dont-need-lodash-underscore/map": "off",
...
}
To save the trouble of configuring each rule individually, you can start by extending one of the default configurations, and then override individual rules as desired.
"extends" : ["plugin:you-dont-need-lodash-underscore/compatible"],
The following options are available:
For more information, see the ESLint documentation.