eslint-plugin-ember-best-practices
eslint-plugin-ember-best-practices copied to clipboard
Don't warn about global jquery if imported
The new modules rfc has you using jQuery with import $ from 'jquery', but this eslint plugin doesn't handle the fact that the usage isn't via a global.
I believe the original intent of that rule was to limit jQuery usage to being specifically from Ember.$ to ensure that whatever jQuery was being used was indeed the version supplied by Ember. But, I'm not 100% certain.
I disabled mine. It could still be useful when transitioning a new app to modules, but is also a red hearing since it returns false positives.
it also complains when doing import { $ } from 'Ember'; 😞