refactor: follow space-before-function-paren lint rule

This commit is contained in:
Daniel 2018-09-17 16:07:44 +02:00
parent c9d41ebd8a
commit d5011fb105
3 changed files with 11 additions and 11 deletions

View File

@ -14,11 +14,13 @@ export function initAngular1(plugins: any) {
const cls = plugins[name]; const cls = plugins[name];
(function(serviceName, cls, name) { (function(serviceName, cls, name) {
ngModule.service(serviceName, [function () { ngModule.service(serviceName, [
function() {
const funcs = window.angular.copy(cls); const funcs = window.angular.copy(cls);
funcs.__proto__['name'] = name; funcs.__proto__['name'] = name;
return funcs; return funcs;
}]); }
]);
})(serviceName, cls, name); })(serviceName, cls, name);
} }
} }

View File

@ -589,7 +589,6 @@ export class BLE extends IonicNativePlugin {
return; return;
} }
/** /**
* Retrieves a list of the peripherals (containing any of the specified services) * Retrieves a list of the peripherals (containing any of the specified services)
* currently connected to the system. The peripheral list is sent to the success callback. * currently connected to the system. The peripheral list is sent to the success callback.

View File

@ -10,7 +10,6 @@
"no-shadowed-variable": false, "no-shadowed-variable": false,
"only-arrow-functions": false, "only-arrow-functions": false,
"ter-no-proto": false, "ter-no-proto": false,
"space-before-function-paren": false,
"callable-types": false, "callable-types": false,
"member-access": false, "member-access": false,
"adjacent-overload-signatures": false, "adjacent-overload-signatures": false,