eslint-config-lodash
Advanced tools
Comparing version 1.2.3 to 2.0.0
{ | ||
"name": "eslint-config-lodash", | ||
"version": "1.2.3", | ||
"version": "2.0.0", | ||
"description": "ESLint Shareable Config for Lodash", | ||
@@ -11,2 +11,5 @@ "scripts": { | ||
], | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"devDependencies": { | ||
@@ -13,0 +16,0 @@ "@eslint-recommended/eslint-config": "11.0.1", |
@@ -16,16 +16,6 @@ [![npm version](https://badge.fury.io/js/eslint-config-lodash.svg)](https://badge.fury.io/js/eslint-config-lodash) | ||
## Peer dependencies | ||
## Installation | ||
- [eslint](https://www.npmjs.com/package/eslint) | ||
- [eslint-plugin-lodash](https://www.npmjs.com/package/eslint-plugin-lodash) | ||
- [eslint-plugin-you-dont-need-lodash-underscore](https://www.npmjs.com/package/eslint-plugin-you-dont-need-lodash-underscore) | ||
npm: | ||
## Usage | ||
### Install packages | ||
#### npm@>=7 | ||
Install `eslint-config-lodash`. | ||
```sh | ||
@@ -35,24 +25,22 @@ npm i -D eslint-config-lodash | ||
#### npm@<7 | ||
Yarn: | ||
Install `eslint-config-lodash` and its peer dependencies. | ||
```sh | ||
npm i -D \ | ||
eslint \ | ||
eslint-plugin-lodash \ | ||
eslint-plugin-you-dont-need-lodash-underscore \ | ||
eslint-config-lodash | ||
yarn add -D eslint-config-lodash | ||
``` | ||
### Use in ESLint config | ||
## Usage | ||
Add `lodash` to `extends` of your ESLint config. | ||
```json | ||
{ | ||
"extends": [ | ||
"lodash" | ||
] | ||
```js | ||
module.exports = { | ||
extends: [ | ||
'lodash' | ||
// add other rulesets here if needed | ||
], | ||
rules: { | ||
// override/add rules settings here if needed | ||
} | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3459
45