eslint-plugin-ember icon indicating copy to clipboard operation
eslint-plugin-ember copied to clipboard

Export Utils to Allow Better Lint Extension of Common Ember Patterns

Open rtablada opened this issue 1 year ago • 1 comments

When working on custom patterns for teams, it is pretty common to need to do things like deprecate a service method/property or some other Ember pattern specific feature.

The utils in this project are really useful, but currently are not exported in anyway so teams have to recreate them on their own.

[!NOTE] An alternative to exporting these utilities would be to make this project a monorepo/workspace and publish a helpers/utils package explicitly. IMO this is actually a better experience so that users could use things like getImportIdentifier without tying directly to Ember.

rtablada avatar Dec 30 '24 17:12 rtablada

@bmish most of the helpers that I've had to reproduce are around:

  1. imports
  2. decorators
  3. https://github.com/ember-cli/eslint-plugin-ember/blob/master/lib/utils/scope-references-this.js

We have limited use for isEmberRoute or isInjectedServiceProp and haven't really needed to grab any of the other utils.

rtablada avatar Dec 31 '24 16:12 rtablada