-
Notifications
You must be signed in to change notification settings - Fork 49
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
ava/no-import-test-files triggers for scoped packages #253
Comments
You file |
That is not what the rule error is saying though. It's saying I'm importing a test file, which is not what's happening. Plus according to the changelog _ still makes a file a helper file. |
From a quick glance at the rule, I'd suspect this is because |
|
Well, given how the helper seems to work it will just assume that there is a folder called |
Unfortunately we resolve the path relative to the file being linted, and when that's done with a scoped package we end up with a relative path inside the I'll PR up a fix soon. |
Only attempt to classify imports that are file paths. Fixes #253.
This should be fixed by #255. |
Only attempt to classify imports that are file paths. Fixes #253.
Using the recommended config of the plugin,
import Octokit from '@octokit/rest';
inside a file called_stubs.js
, so an ava helper file, triggers the ruleava/no-import-test-files
with the message "Test files should not be imported" for the whole line.Example: https://travis-ci.org/mozillach/gh-projects-content-queue/jobs/540192593#L477
The text was updated successfully, but these errors were encountered: