eslint-plugin-ember
eslint-plugin-ember copied to clipboard
An ESLint plugin that provides set of rules for Ember applications based on commonly known good practices.
There's [an existing eslint plugin for imports](https://github.com/benmosher/eslint-plugin-import/blob/master/README.md#settings), but it ignores imports from node_modules by default. It would be awesome if eslint-plugin-ember configured this rule to make it capable of resolving...
Create a new rule `require-normalized-service-injections` (or similar name) which would both validate that the service being injected actually exists, and that the name it's injected with matches its resolved name...
With the [release of Ember 3.26](https://blog.emberjs.com/ember-3-26-released): > Implicit injection has been deprecated. In particular, the store service from Ember Data must be explicitly injected into controllers and routes if they...
Usage of `run(function() {})` forms (immediately invoking the function provided) should be avoided. They are generally no longer needed (since Ember 3.4 when the auto-run assertion was removed), and are...
This rule would catch the issue that led to the bug in #1118 This rule would lint all macros as well as computed properties and getters for self-referential behavior. It...
`reads` and `oneWay` are footguns if used in a controller to access a `model` property, because once changed they will no longer update when the `model` for the route changes....
A new rule disallowing `oneWay` `reads` and `readOnly` off of another prop on the same context. ```js import Component from '@glimmer/component'; import { oneWay, reads, readOnly } from '@ember/object/computed'; export...
Couldn't find a lint rule for this, but I would like to catch accidental usages of this.element in integration tests. I think that's an anitpattern now?
Adds a nice way to handle [emberjs/rfcs#674](https://github.com/emberjs/rfcs/blob/master/text/0674-deprecate-transition-methods-of-controller-and-route.md) by flagging them as an issue, and adding a fixer to use the router service. This would flag: * Using `this.transitionTo` from a...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. -...