Skip to content

lodash-community/eslint-config-lodash

Repository files navigation

npm version lint ESLint Recommended

eslint-config-lodash

ESLint Shareable Config for Lodash

Overview

eslint-config-lodash is using following configurations and plugins.

Requirements

  • Node.js v18 or later
  • ESLint v7/v8

Installation

npm:

npm i -D eslint-config-lodash

Yarn:

yarn add -D eslint-config-lodash

pnpm:

pnpm add -D eslint-config-lodash

Usage

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
  ]
}