Examples of custom rules used in my ESLint talks.
It uses the same structure and same conventions as the official ESLint repository.
npm i
npm run lint
npm test
disallow the use of
$q.when()
Good example to see how to deprecate a method. The advanced version handles
prevent the usage of jQuery
Over-engineered rule. It comes with a simple, advanced and smarter version. But all are over the top, the real way to block jQuery is to *not have it as a global
to start with…
enforce the presence of AngularJS dependency injection annotations
Useful if you use ng-annotate. This rule is far from handling all use-cases, I still advice against using it.
and a few more…