Skip to content

import/extensions: does not complain about .coffee #583

New issue

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

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

Already on GitHub? # to your account

Closed
ljharb opened this issue Sep 24, 2016 · 2 comments · Fixed by #1010
Closed

import/extensions: does not complain about .coffee #583

ljharb opened this issue Sep 24, 2016 · 2 comments · Fixed by #1010
Labels

Comments

@ljharb
Copy link
Member

ljharb commented Sep 24, 2016

I've got the following config:

['error', 'never', {
  js: 'always',
  jsx: 'always',
}]

However, import '../vendor/blah.coffee'; does not warn. I would expect it to resolve the import, extract everything after the last dot, and then use that extension to determine that it should be omitted.

@benmosher benmosher added the bug label Sep 24, 2016
@benmosher
Copy link
Member

and there is no blah.coffee.js file sibling, I presume?

@ljharb
Copy link
Member Author

ljharb commented Sep 24, 2016

Correct.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants