Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit d7f1362

Browse files
committed
chore: update eslint rules (indention)
1 parent 534d459 commit d7f1362

File tree

4 files changed

+31
-22
lines changed

4 files changed

+31
-22
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"comma-spacing": [1, {"before": false, "after": true}],
2323
"comma-style": [1, "last"],
2424
"eol-last": 1,
25-
"indent": [1, 2, {"SwitchCase": 1}],
25+
"indent": [1, 2, {"SwitchCase": 1, "FunctionDeclaration": {"parameters": "first"}, "FunctionExpression": {"parameters": "first"}}],
2626
"keyword-spacing": 1,
2727
"semi": 2,
2828
"quotes": [1, "single"]

karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ var AVAILABLE_SCOPES = [], isValidScope, injectByScope, getAffectiveScope, isDef
3030
}
3131
return prefix + 'bower_components/' + path;
3232
},
33-
isDefaultScope = function (scope) {
34-
return !isValidScope(scope);
35-
};
33+
isDefaultScope = function (scope) {
34+
return !isValidScope(scope);
35+
};
3636
})();
3737

3838
/**

src/lib/adapter/EventBusAdapter.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,18 @@ import ConnectionConfigHolder from './../support/ConnectionConfigHolder';
9494

9595
export default class EventBusAdapter extends BaseAdapter {
9696

97-
constructor(EventBus, $timeout, $log, $q, {
98-
enabled,
99-
debugEnabled,
100-
initialConnectEnabled,
101-
connectionConfig,
102-
reconnectEnabled,
103-
sockjsReconnectInterval,
104-
sockjsOptions
105-
}) {
97+
constructor(EventBus,
98+
$timeout,
99+
$log,
100+
$q, {
101+
enabled,
102+
debugEnabled,
103+
initialConnectEnabled,
104+
connectionConfig,
105+
reconnectEnabled,
106+
sockjsReconnectInterval,
107+
sockjsOptions
108+
}) {
106109
super($q);
107110
// actual EventBus type
108111
this.EventBus = EventBus;

src/lib/service/delegate/EventBusDelegate.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,21 @@ import BaseDelegate from './BaseDelegate';
6464

6565
export default class EventBusDelegate extends BaseDelegate {
6666

67-
constructor($rootScope, $interval, $log, $q, $injector, eventBus, {
68-
enabled,
69-
debugEnabled,
70-
prefix,
71-
sockjsStateInterval,
72-
messageBuffer,
73-
authRequired,
74-
authHandler
75-
}) {
67+
constructor($rootScope,
68+
$interval,
69+
$log,
70+
$q,
71+
$injector,
72+
eventBus,
73+
{
74+
enabled,
75+
debugEnabled,
76+
prefix,
77+
sockjsStateInterval,
78+
messageBuffer,
79+
authRequired,
80+
authHandler
81+
}) {
7682
super();
7783
this.$rootScope = $rootScope;
7884
this.$interval = $interval;

0 commit comments

Comments
 (0)