-
-
Notifications
You must be signed in to change notification settings - Fork 47
warning File ignored by default. Use "--ignore-pattern '!node_modules/*'" to override #63
Comments
I'm also getting this error, but from upgrading ember-cli-eslint from 1.3 to 1.4. The previous release with a separate .eslintrc for test and dev, although painful to maintain, was working on Ember 2.5. I'm not familiar with eslint configuration files but it seems that Ember or eslint doesn't like using two js config files with module.exports. |
@jcano How do you have separate .eslintrc files for test/dev? |
@oligriffiths I don't know the implementation details, but the previous version of ember-cli-eslint had two .eslintrc files, one on the root of the project and one in the tests directory. When running In the current release, there are two files too, but they are .eslintrc.js with module.exports = {
env: {
"embertest": true
}
}; For some reason, eslint or the Ember test runner is not picking up on this and thus, showing the message you wrote on your post. |
@oligriffiths @jcano Are your files still being linted despite the warnings? I've been looking into this, as it occurs for |
Well, tests fail as a result. |
So, I reinstalled, and have both of those files now. I'm seeing the errors I posted above, plus |
In my case, the files are still being linted but the tests spits a warning ("File ignored by default"). About the settings, I don't know what The warning is probably referring to not linting .eslintrc.js, which would be expected but there should be a way of explicitly telling eslint not to even consider that file for linting. |
It looks like this traces back to a behavior in As for the file generation discrepancies, @oligriffiths, |
Yeah linting is still working but those warnings cause the test suite to fail.
|
I am experience the same with my ember 2.5 project.
which is causing |
What's involved in updating to eslint 2.10+ ? |
@oligriffiths I don't think 2.10+ would introduce anything beyond incremental minor updates from the current version we're using (2.4). That said, after digging around a bit into how we're currently handling ignored messages, I was able to implement a solution locally (adding to/modifying the RegExp check that's going on there) that prevents the warnings (including the one that you're seeing, @sonnyt) -- and I'm working on pushing it out soon. It definitely seems like this approach can stand to be more robust going forward, but it should solve the immediate issue. |
Great. Is that on a branch? Regarding the version, can we bump that anyway? Currently 6 point releases behind.
|
ember-cli/broccoli-lint-eslint#37 was just merged in @oligriffiths @sonnyt Reinstalling |
Awesome. Will check out an confirm asap
|
@BrianSipple the fix worked for me! Thank you 👍 |
I don't get the warning anymore when doing Not sure what makes |
I too am seeing those warnings when running ember serve.
|
#48 also touches on mysterious behavior in Atom. I just did a fresh install of |
@BrianSipple I was probably using the latest As for #48, I guess new user won't hit the issue anymore as the default generated config file is not referencing I will try to get you a screenshot tonight as I'm on another computer right now, otherwise, it might slip until tomorrow night. Also, I'm sure I will be able to add more information about the not found module. |
Here the image in question: Also, just did this steps and got the problem:
And once I opened
If you cannot reproduce with the step above, it might be platform specific maybe Windows problem due to different separator or something else. |
@maoueh Yep, I’m seeing this too. This is a tough one. It appears to be related to an issue that's affecting all users of eslint at the moment, and I’m not quite sure it’s something we can address here (But I'd love to hear if anyone has ideas 😀). To elaborate, briefly: Behind the scenes, (Worth noting, though — especially for anyone just now getting to this issue: since the error is localized to Atom, it shouldn’t cause builds to break, as that process does still go through |
Hi
Since updating to ember 2.5 recently, I'm now getting this error:
Any ideas? This was working fine before.
Thanks
The text was updated successfully, but these errors were encountered: