Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In v50.0.0 , lodash dependency is missing #2240

Closed
webextensions opened this issue Dec 21, 2023 · 2 comments · Fixed by #2242
Closed

In v50.0.0 , lodash dependency is missing #2240

webextensions opened this issue Dec 21, 2023 · 2 comments · Fixed by #2242
Assignees

Comments

@webextensions
Copy link

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 ...

@fisker
Copy link
Collaborator

fisker commented Dec 21, 2023

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

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

@fisker
Copy link
Collaborator

fisker commented Dec 21, 2023

Should fixed in v50.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants