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

Handle ES6 imports? #15

Open
mo opened this issue Jul 22, 2017 · 2 comments
Open

Handle ES6 imports? #15

mo opened this issue Jul 22, 2017 · 2 comments

Comments

@mo
Copy link

mo commented Jul 22, 2017

I tried running this on my node + react frontend project, and it says:
[require-lint] Extraneous dependencies: react, react-dom, react-router-dom

...even though I definitely use react. I do import it via ES6 imports though.

@rprieto
Copy link
Contributor

rprieto commented Jul 22, 2017

Hi, there's a chance it doesn't handle it yet but could be an easy fix. Can you paste an example of what the imports look like?

@mo
Copy link
Author

mo commented Jul 22, 2017

import PropTypes from 'prop-types';
import React from 'react';

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