Skip to content

tbassetto/eslint-plugin-example

Repository files navigation

eslint-plugin-example

Examples of custom rules used in my ESLint talks.

Talks

Test and development

It uses the same structure and same conventions as the official ESLint repository.

npm i
npm run lint
npm test

Rules

prefer-q-resolve

disallow the use of $q.when()

Good example to see how to deprecate a method. The advanced version handles

no-jquery

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…

ng-inject

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…

About

Examples of custom rules used in my ESLint talks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published