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

Detect when ES can be replaced with lodash #7

Open
gajus opened this issue Nov 24, 2015 · 1 comment
Open

Detect when ES can be replaced with lodash #7

gajus opened this issue Nov 24, 2015 · 1 comment

Comments

@gajus
Copy link

gajus commented Nov 24, 2015

e.g.

Object.keys(commands)
    .map((key) => {
        return commands[key];
    })
    .forEach((cmd) => {
        if (cmd.yargsSetup) {
            cmd.yargsSetup();
        }

        if (cmd.examples) {
            cmd.examples();
        }
    });

warn that Object.keys can be replaced with _.keys.

This would be great for consistency.

@mik01aj
Copy link

mik01aj commented Nov 24, 2015

This is already implemented in other project: https://github.com/wix/eslint-plugin-lodash3/blob/master/docs/rules/prefer-lodash-method.md

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

No branches or pull requests

2 participants