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

same file in different paths causes false error #1047

Closed
sibelius opened this issue Mar 14, 2018 · 2 comments
Closed

same file in different paths causes false error #1047

sibelius opened this issue Mar 14, 2018 · 2 comments

Comments

@sibelius
Copy link

sibelius commented Mar 14, 2018

this is causing no-duplicate lint error

import * as searchResultsFilters from './Helpers/SearchResultsFilter';
import { FILTER_FARE, FILTER_ORDERING, FILTER_STOPS } from './Helpers/SearchResultsFilter';
@sibelius
Copy link
Author

this wasn't the problem

this was

import * as searchResultsFilters from './Helpers/SearchResultsFilter';
import  from './Helpers/SearchResultsFilter';

below does not work

 import * as searchResultsFilters, { FILTER_FARE, FILTER_ORDERING, FILTER_STOPS } from './Helpers/SearchResultsFilter';

@ljharb
Copy link
Member

ljharb commented Mar 14, 2018

Indeed, import * as can't be combined with other things.

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

No branches or pull requests

2 participants