sindresorhus / eslint-plugin-unicorn

More than 100 powerful ESLint rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In v50.0.0 , lodash dependency is missing

webextensions opened this issue · comments

const {camelCase} = require('lodash'); is used in https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v50.0.0/rules/no-unnecessary-polyfills.js

But, "lodash" isn't available in https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v50.0.0/package.json

So, when we consume this package (in another ESLint config), it is causing an issue when we try to load the latest version:
Failed to load plugin 'eslint-plugin-unicorn' declared in '.eslintrc.js ...

Would you like to fix it? Should import from ./utils/lodash.js.

const {camelCase, kebabCase, snakeCase, upperFirst} = require('./utils/lodash.js');

Should fixed in v50.0.1