-
-
Notifications
You must be signed in to change notification settings - Fork 54
Allow ".lint-test" suffix to work along with ".jshint" #108
Conversation
Changes look good... |
Ok, I've been able to test this all the way through with a real app, and it's working! Note the addition of the ember-cli-qunit bump. |
@rwjblue I suppose a major release is safest, but I wonder if any other software is attempting to hook into the "Disable JSHint" feature by using this file extension. I am not a SemVer lawyer but I don't feel like this would have been considered a public API in the past. I did a search through github to see if anyone was using Is ending with |
Yeah, that does make a bit more sense. It will require us to change our mechanism for loading modules though (since the regexp for |
If you leave an untested addon under your pillow at night... Changing this suffix to This time I made this change backwards compatible. Old jshint modules will continue to work. I still want to test this in a real app before merging. I can do this tomorrow. Also it would be great to add |
var TestLoaderModule = require('ember-cli/test-loader'); | ||
var TestLoader = TestLoaderModule['default']; | ||
var addModuleIncludeMatcher = TestLoaderModule['addModuleIncludeMatcher']; | ||
const TestLoaderModule = require('ember-cli/test-loader'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I prefer the "liberal-let" strategy as coined in madhatted.com/2016/1/25/let-it-be
vendor/
is not processed by babel, so these will not get transpiled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was in the spirit of this article since we're importing something that is "class-like". Checking with the author :)
In any event, looks a case for good ol' var!
Left a small nit-pick, but this looks good. |
Ok, made that change to use |
Allow ".lint-test" suffix to work along with ".jshint"
Thanks @mitchlloyd! |
Let's hold off on merging this one until I have a chance to test the integration in an app.