Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -2,7 +2,7 @@ module.exports =
function angularDraggabillyDirective(DraggabillyService, $parse) {
return {
restrict: 'AE',
link: function (scope, element, attrs) {
link: function(scope, element, attrs) {
var parsedAttrs = $parse(attrs.angularDraggabilly)()
if (typeof parsedAttrs !== 'object') {
parsedAttrs = {}
@@ -11,7 +11,7 @@ module.exports =
var options = angular.extend({
}, parsedAttrs)
/* jshint unused: false */
/* eslint no-unused-vars: 0 */
var draggie = new DraggabillyService(element[0], options)
}
}

View File

@@ -1,23 +1,21 @@
describe('angularDraggabilly', function () {
describe('angularDraggabilly', function() {
beforeEach(angular.mock.module(require('./').name));
beforeEach(angular.mock.module(require('./').name))
var scope, compile;
var scope, compile
beforeEach(inject(function ($rootScope, $compile) {
scope = $rootScope.$new();
compile = $compile;
}));
it('should ...', function () {
beforeEach(inject(function($rootScope, $compile) {
scope = $rootScope.$new()
compile = $compile
}))
it('should ...', function() {
/*
To test your directive, you need to create some html that would use your directive,
send that through compile() then compare the results.
var element = compile('<div angular-draggabilly name="name">hi</div>')(scope);
expect(element.text()).toBe('hello, world');
var element = compile('<div angular-draggabilly name="name">hi</div>')(scope)
expect(element.text()).toBe('hello, world')
*/
});
});
})
})

View File

@@ -3,7 +3,7 @@ var draggabilly = require('draggabilly')
module.exports = angular.module('stf.angular-draggabilly', [
])
.factory('DraggabillyService', function () {
.factory('DraggabillyService', function() {
return draggabilly
})
.directive('angularDraggabilly', require('./angular-draggabilly-directive'))