From 45a68238f6e5c326a521f6562c53e1df25784d1d Mon Sep 17 00:00:00 2001 From: Emmanuel DEMEY Date: Wed, 9 Dec 2015 17:11:43 +0100 Subject: [PATCH] Solve ESLint issues --- rules/no-directive.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rules/no-directive.js b/rules/no-directive.js index eb3655ee..9380a238 100644 --- a/rules/no-directive.js +++ b/rules/no-directive.js @@ -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 @@ -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); } }; });