eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
9 lines (6 loc) • 313 B
JavaScript
// example - valid: true
angular.element('.some-class');
// example - valid: false, errorMessage: "You should use angular.element instead of the jQuery $ object"
$('.some-class');
// example - valid: false, errorMessage: "You should use angular.element instead of the jQuery $ object"
jQuery('.another-class');