eslint-plugin-ember
eslint-plugin-ember copied to clipboard
forbid overriding builtin services
do folks want this? should I keep working on it?
I think it could be useful, because things only go wrong when people override the router service
We could call this no-overriding-builtin-services
? I would include router
and store
(Ember Data) for sure. Are there any other builtin services we should include?
I don't think this rule needs to be configurable, since people can use the existing no-restricted-service-injections rule if they want customization.
UPDATE: see other comment thread for more discussion.