eslint-config-lodash
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "eslint-config-lodash", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "ESLint Shareable Config for Lodash", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,5 +10,13 @@ [![npm version](https://badge.fury.io/js/eslint-config-lodash.svg)](https://badge.fury.io/js/eslint-config-lodash) | ||
- Based on recommended config of [eslint-plugin-lodash](https://www.npmjs.com/package/eslint-plugin-lodash) | ||
- Prefer using native API over Lodash | ||
`eslint-config-lodash` is using following configurations and plugins. | ||
- [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) | ||
## Peer dependencies | ||
- [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) | ||
## Usage | ||
@@ -18,5 +26,15 @@ | ||
Install eslint-config-lodash and its peer dependencies. | ||
#### npm@>=7 | ||
Install `eslint-config-lodash`. | ||
```sh | ||
npm i -D eslint-config-lodash | ||
``` | ||
#### npm@<7 | ||
Install `eslint-config-lodash` and its peer dependencies. | ||
```sh | ||
npm i -D \ | ||
@@ -29,12 +47,12 @@ eslint \ | ||
### Update ESLint config | ||
### Use in ESLint config | ||
Add `lodash` to `extends` of your ESLint config. | ||
```js | ||
module.exports = { | ||
extends: [ | ||
'lodash' | ||
```json | ||
{ | ||
"extends": [ | ||
"lodash" | ||
] | ||
} | ||
``` |
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
3616
56