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

import/extensions cannot understand .htaccess file name #679

Closed
mihir0x69 opened this issue Nov 27, 2016 · 5 comments
Closed

import/extensions cannot understand .htaccess file name #679

mihir0x69 opened this issue Nov 27, 2016 · 5 comments

Comments

@mihir0x69
Copy link

import 'file?name=[name].[ext]!./.htaccess'; gives me this-

Missing file extension for "file?name=[name].[ext]!./.htaccess" import/extensions

@ljharb
Copy link
Member

ljharb commented Nov 27, 2016

Is that a custom webpack syntax?

@mihir0x69
Copy link
Author

@ljharb Yes, file?name=[name].[ext]! is a custom webpack syntax. You can ignore that. I can also turn this into a simpler form- import './.htaccess';

Either way, eslint throws the aforementioned error 😕 Since, .htaccess does not have a file name, I thought import/extensions couldn't understand it. Please correct me if it's not a valid issue.

@benmosher
Copy link
Member

ah yeah, so two issues here:

@tylucaskelley
Copy link

Any update on this? Annoying when trying to import dotfiles, for example .eslintrc

@ljharb
Copy link
Member

ljharb commented Jan 6, 2020

Fixed by #1572, i believe, which will be in the next release.

@ljharb ljharb closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants