mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
refactor: follow space-before-function-paren lint rule
This commit is contained in:
parent
c9d41ebd8a
commit
d5011fb105
@ -13,12 +13,14 @@ export function initAngular1(plugins: any) {
|
|||||||
const serviceName = '$cordova' + name;
|
const serviceName = '$cordova' + name;
|
||||||
const cls = plugins[name];
|
const cls = plugins[name];
|
||||||
|
|
||||||
(function (serviceName, cls, name) {
|
(function(serviceName, cls, name) {
|
||||||
ngModule.service(serviceName, [function () {
|
ngModule.service(serviceName, [
|
||||||
const funcs = window.angular.copy(cls);
|
function() {
|
||||||
funcs.__proto__['name'] = name;
|
const funcs = window.angular.copy(cls);
|
||||||
return funcs;
|
funcs.__proto__['name'] = name;
|
||||||
}]);
|
return funcs;
|
||||||
|
}
|
||||||
|
]);
|
||||||
})(serviceName, cls, name);
|
})(serviceName, cls, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
@ -599,7 +598,7 @@ export class BLE extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>} Returns a promise with a list of peripheral objects
|
* @returns {Promise<any>} Returns a promise with a list of peripheral objects
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
connectedPeripheralsWithServices (services: string[]): Promise<any[]> {
|
connectedPeripheralsWithServices(services: string[]): Promise<any[]> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -611,7 +610,7 @@ export class BLE extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>} Returns a promise with a list of peripheral objects
|
* @returns {Promise<any>} Returns a promise with a list of peripheral objects
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
peripheralsWithIdentifiers (uuids: string[]): Promise<any[]> {
|
peripheralsWithIdentifiers(uuids: string[]): Promise<any[]> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -622,7 +621,7 @@ export class BLE extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>} Returns a promise with a list of peripheral objects
|
* @returns {Promise<any>} Returns a promise with a list of peripheral objects
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
bondedDevices (): Promise<any[]> {
|
bondedDevices(): Promise<any[]> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user