ESLint Shareable Config for Lodash
eslint-config-lodash
is using following configurations and plugins.
- Node.js v18 or later
- ESLint v7/v8
npm:
npm i -D eslint-config-lodash
Yarn:
yarn add -D eslint-config-lodash
pnpm:
pnpm add -D eslint-config-lodash
Add lodash
to the extends
section of your ESLint configuration file.
JavaScript:
module.exports = {
extends: [
'lodash'
// add other rulesets here if needed
]
}
YAML:
extends:
- lodash
# add other rulesets here if needed
JSON:
{
"extends": [
"lodash"
// add other rulesets here if needed
]
}