eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
18 lines (12 loc) • 421 B
JavaScript
// example - valid: true
$timeout(function() {
// ...
}, 1000)
// example - valid: false, errorMessage: "You should use the $timeout service instead of the default window.setTimeout method"
setTimeout(function() {
// ...
}, 1000)
// example - valid: false, errorMessage: "You should use the $timeout service instead of the default window.setTimeout method"
window.setTimeout(function() {
// ...
}, 1000)