DEV Community

Ayja Weems
Ayja Weems

Posted on

Catching Lodash Methods with Linting

Hello awesome Dev.to-ers! I am working on a project with a team that has used lodash in the past to access some methods that can transform/manipulate arrays. Now that some of these methods are a part of native JS, there isn't really a need for lodash methods like .filter, .map, .reduce, .concat, .findIndex, etc.

So my question to anyone that's willing to answer is, is there a way to configure the linter to catch the use of those unnecessary lodash methods?

Top comments (1)

Collapse
 
wolfhoundjesse profile image
Jesse M. Holmes

I've never used this one, but someone has!
eslint-plugin-you-dont-need-lodash...