eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
11 lines (8 loc) • 406 B
JavaScript
// example - valid: true
$q(function() {
// ...
});
// example - valid: false, errorMessage: "You should not create a new promise with this syntax. Use the $q(function(resolve, reject) {}) syntax."
var deferred = $q.defer();
// example - valid: false, errorMessage: "You should not create a new promise with this syntax. Use the $q(function(resolve, reject) {}) syntax."
var deferred = _$q_.defer();