Skip to content

Commit

Permalink
Solve ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Dec 9, 2015
1 parent 44220ac commit 45a6823
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rules/no-directive.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Since AngularJS 1.5, we can use a new API when creating directives. This API will help the migration to the next version of the framework
*
* Since AngularJS 1.5, we can use a new API when creating directives. This API will help the migration to the next version of the framework
*
* @version 0.16.0
* @category bestPractice
* @sinceAngularVersion 1.5
Expand All @@ -9,15 +9,14 @@

var angularRule = require('./utils/angular-rule');


module.exports = angularRule(function(context) {
function report(node) {
context.report(node, 'Directive should be implemented with the component method', {});
}

return {
'angular:directive': function(callExpression, fn) {
report(callExpression);
'angular:directive': function(callExpression) {
report(callExpression);
}
};
});
Expand Down

0 comments on commit 45a6823

Please sign in to comment.