Skip to content

Commit e817d9b

Browse files
committed
Solve ESLint issues
1 parent 611bbfd commit e817d9b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function _createRule(ruleName) {
192192
}
193193

194194
// load rule module for tests
195-
rule.module = require('../rules/' + rule.ruleName); // eslint-disable-line global-require
195+
rule.module = require('../rules/' + rule.ruleName);// eslint-disable-line global-require
196196

197197
// load examples, prepare them for the tests and group the for the template
198198
rule.allExamples = _loadExamples(rule);

scripts/templates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ var templateSettings = {
2525
return '';
2626
}
2727
return ' (' + rule.styleguideReferences
28-
.map(styleguideReferenceTemplateContext)
29-
.map(templates.styleguideShort).join(', ') +
30-
')';
28+
.map(styleguideReferenceTemplateContext)
29+
.map(templates.styleguideShort).join(', ') +
30+
')';
3131
},
3232
formatConfigAsJson: function(examples) {
3333
var config = examples[0].displayOptions;

test/controller-as.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ eslintTester.run('controller-as', rule, {
2727
'function UserController(UserService, $compile, $scope, $q, CommonEnum, CommonService, $uibModal, TenantService) {' +
2828
'$scope.myform = {};' +
2929
'}',
30-
errors: [{message: 'You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this"'}]
30+
errors: [{message: 'You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this"'}]
3131
},
3232
{code: 'angular.module("test").controller("Test", function() {$scope.name = "test"} );',
3333
errors: [{message: 'You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this"'}]},

0 commit comments

Comments
 (0)