Переглянути джерело

feat(lint,ts) apply import order rules for TS files too

master
Saúl Ibarra Corretgé 4 місяці тому
джерело
коміт
0056bf04d1

+ 1
- 1
modules/RTCStats/RTCStats.ts Переглянути файл

@@ -3,7 +3,6 @@ import rtcstatsInit from '@jitsi/rtcstats/rtcstats';
3 3
 import traceInit from '@jitsi/rtcstats/trace-ws';
4 4
 
5 5
 import JitsiConference from '../../JitsiConference';
6
-import JitsiConnection from '../../JitsiConnection';
7 6
 import {
8 7
     BEFORE_STATISTICS_DISPOSED,
9 8
     CONFERENCE_CREATED_TIMESTAMP,
@@ -11,6 +10,7 @@ import {
11 10
     CONFERENCE_LEFT,
12 11
     CONFERENCE_UNIQUE_ID_SET
13 12
 } from '../../JitsiConferenceEvents';
13
+import JitsiConnection from '../../JitsiConnection';
14 14
 import Settings from '../settings/Settings';
15 15
 import EventEmitter from '../util/EventEmitter';
16 16
 

+ 4
- 4
modules/detection/NoAudioSignalDetection.ts Переглянути файл

@@ -1,11 +1,11 @@
1
-import EventEmitter from '../util/EventEmitter';
1
+import type JitsiConference from '../../JitsiConference';
2 2
 import { JitsiConferenceEvents } from '../../JitsiConferenceEvents';
3 3
 import { JitsiTrackEvents } from '../../JitsiTrackEvents';
4
-import * as DetectionEvents from './DetectionEvents';
5
-
6 4
 import type JitsiLocalTrack from '../RTC/JitsiLocalTrack';
7
-import type JitsiConference from '../../JitsiConference';
8 5
 import type TraceablePeerConnection from '../RTC/TraceablePeerConnection';
6
+import EventEmitter from '../util/EventEmitter';
7
+
8
+import * as DetectionEvents from './DetectionEvents';
9 9
 
10 10
 // We wait a certain time interval for constant silence input from the current device to account for
11 11
 // potential abnormalities and for a better use experience i.e. don't generate event the instant

+ 1
- 1
modules/detection/P2PDominantSpeakerDetection.ts Переглянути файл

@@ -1,6 +1,6 @@
1
+import JitsiConference from '../../JitsiConference';
1 2
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
2 3
 import RTCEvents from '../../service/RTC/RTCEvents';
3
-import JitsiConference from '../../JitsiConference';
4 4
 
5 5
 /**
6 6
  * The value which we use to say, every sound over this threshold

+ 1
- 0
modules/detection/VADTalkMutedDetection.ts Переглянути файл

@@ -1,5 +1,6 @@
1 1
 import EventEmitter from '../util/EventEmitter';
2 2
 import { calculateAverage } from '../util/MathUtil';
3
+
3 4
 import { DETECTOR_STATE_CHANGE, VAD_TALK_WHILE_MUTED } from './DetectionEvents';
4 5
 
5 6
 /**

+ 2
- 2
modules/proxyconnection/CustomSignalingLayer.ts Переглянути файл

@@ -1,9 +1,9 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 
3 3
 import { MediaType } from '../../service/RTC/MediaType';
4
-import SignalingLayer from '../../service/RTC/SignalingLayer';
4
+import { type IPeerMediaInfo, default as SignalingLayer } from '../../service/RTC/SignalingLayer';
5 5
 import ChatRoom from '../xmpp/ChatRoom';
6
-import type { IPeerMediaInfo } from '../../service/RTC/SignalingLayer';
6
+
7 7
 const logger = getLogger('modules/proxyconnection/CustomSignalingLayer');
8 8
 
9 9
 /**

+ 2
- 1
modules/recording/JibriSession.ts Переглянути файл

@@ -1,8 +1,9 @@
1 1
 import { $iq } from 'strophe.js';
2 2
 
3
-import recordingXMLUtils from './recordingXMLUtils';
4 3
 import JitsiParticipant from '../../JitsiParticipant';
5 4
 
5
+import recordingXMLUtils from './recordingXMLUtils';
6
+
6 7
 export interface IJibriSessionOptions {
7 8
     connection?: any;
8 9
     focusMucJid?: string;

+ 3
- 3
modules/statistics/SpeakerStatsCollector.ts Переглянути файл

@@ -1,9 +1,9 @@
1
+import JitsiConference from '../../JitsiConference';
1 2
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
2 3
 import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
3 4
 
4
-import SpeakerStats from './SpeakerStats';
5
-import JitsiConference from '../../JitsiConference';
6
-import type { IFaceLandmarks } from './SpeakerStats';
5
+import { type IFaceLandmarks, default as SpeakerStats } from './SpeakerStats';
6
+
7 7
 /**
8 8
  * The value to use for the "type" field for messages sent
9 9
  * over the data channel that contain a face landmark.

+ 1
- 1
modules/util/AsyncQueue.ts Переглянути файл

@@ -1,5 +1,5 @@
1 1
 import { getLogger } from '@jitsi/logger';
2
-import { queue, AsyncQueue as AsyncQueueType } from 'async-es';
2
+import { AsyncQueue as AsyncQueueType, queue } from 'async-es';
3 3
 
4 4
 const logger = getLogger('modules/util/AsyncQueue');
5 5
 

+ 1
- 1
modules/util/UsernameGenerator.ts Переглянути файл

@@ -1,4 +1,4 @@
1
-import { randomElement, randomAlphanumStr } from './RandomUtil';
1
+import { randomAlphanumStr, randomElement } from './RandomUtil';
2 2
 
3 3
 /**
4 4
  * from faker.js - Copyright (c) 2014-2015 Matthew Bergman & Marak Squires

+ 2
- 1
modules/videosipgw/JitsiVideoSIPGWSession.ts Переглянути файл

@@ -1,7 +1,8 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 import { $iq } from 'strophe.js';
3
-import ChatRoom from '../xmpp/ChatRoom';
3
+
4 4
 import Listenable from '../util/Listenable';
5
+import ChatRoom from '../xmpp/ChatRoom';
5 6
 
6 7
 import * as VideoSIPGWConstants from './VideoSIPGWConstants';
7 8
 

+ 2
- 2
modules/videosipgw/VideoSIPGW.ts Переглянути файл

@@ -2,11 +2,11 @@ import { getLogger } from '@jitsi/logger';
2 2
 const logger = getLogger('modules/videosipgw/VideoSIPGW');
3 3
 
4 4
 import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
5
+import EventEmitter from '../util/EventEmitter';
6
+import ChatRoom from '../xmpp/ChatRoom';
5 7
 
6 8
 import JitsiVideoSIPGWSession from './JitsiVideoSIPGWSession';
7 9
 import * as Constants from './VideoSIPGWConstants';
8
-import ChatRoom from '../xmpp/ChatRoom';
9
-import EventEmitter from '../util/EventEmitter';
10 10
 
11 11
 
12 12
 export interface ISessionStateChangeEvent {

+ 2
- 0
modules/xmpp/AVModeration.ts Переглянути файл

@@ -1,7 +1,9 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 import { $msg } from 'strophe.js';
3
+
3 4
 import { MediaType } from '../../service/RTC/MediaType';
4 5
 import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
6
+
5 7
 import ChatRoom from './ChatRoom';
6 8
 import XMPP from './xmpp';
7 9
 

+ 1
- 0
modules/xmpp/MockClasses.ts Переглянути файл

@@ -1,4 +1,5 @@
1 1
 import { Strophe } from 'strophe.js';
2
+
2 3
 import Listenable from '../util/Listenable';
3 4
 
4 5
 /* eslint-disable no-empty-function */

+ 1
- 1
modules/xmpp/ResumeTask.ts Переглянути файл

@@ -1,11 +1,11 @@
1 1
 import { getLogger } from '@jitsi/logger';
2
+import Strophe from 'strophe.js';
2 3
 
3 4
 import {
4 5
     NETWORK_INFO_EVENT,
5 6
     default as NetworkInfo
6 7
 } from '../connectivity/NetworkInfo';
7 8
 import { getJitterDelay } from '../util/Retry';
8
-import Strophe from 'strophe.js';
9 9
 
10 10
 const logger = getLogger('modules/xmpp/ResumeTask');
11 11
 

+ 2
- 1
modules/xmpp/StropheLastSuccess.ts Переглянути файл

@@ -2,9 +2,10 @@
2 2
  * Attaches to the {@link Strophe.Connection.rawInput} which is called whenever any data is received from the server.
3 3
  */
4 4
 
5
-import XmppConnection from './XmppConnection';
6 5
 import { Strophe } from 'strophe.js';
7 6
 
7
+import XmppConnection from './XmppConnection';
8
+
8 9
 
9 10
 export default class LastRequestTracker {
10 11
     private _lastSuccess: number | null;

+ 1
- 2
modules/xmpp/strophe.rayo.ts Переглянути файл

@@ -1,7 +1,6 @@
1 1
 import { getLogger } from '@jitsi/logger';
2 2
 import $ from 'jquery';
3
-import { $iq } from 'strophe.js';
4
-import type { Connection } from 'strophe.js';
3
+import { $iq, type Connection } from 'strophe.js';
5 4
 
6 5
 import ConnectionPlugin from './ConnectionPlugin';
7 6
 

+ 7
- 7
package-lock.json Переглянути файл

@@ -29,7 +29,7 @@
29 29
         "@babel/core": "7.25.9",
30 30
         "@babel/preset-env": "7.25.9",
31 31
         "@babel/preset-typescript": "7.25.9",
32
-        "@jitsi/eslint-config": "6.0.3",
32
+        "@jitsi/eslint-config": "6.0.4",
33 33
         "@types/async": "3.2.12",
34 34
         "@types/jasmine": "4.0.3",
35 35
         "@types/lodash-es": "4.17.12",
@@ -1817,9 +1817,9 @@
1817 1817
       "license": "BSD-3-Clause"
1818 1818
     },
1819 1819
     "node_modules/@jitsi/eslint-config": {
1820
-      "version": "6.0.3",
1821
-      "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-6.0.3.tgz",
1822
-      "integrity": "sha512-lGScJO9AASbt2H3XjktpkCZyD1Pp7AK3xGO+n4DIG7gp3KjL+BYKANmrx8pKY03yz7FTsieuTrUiO2IJ7mGQSw==",
1820
+      "version": "6.0.4",
1821
+      "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-6.0.4.tgz",
1822
+      "integrity": "sha512-5ReSX/ruQi/JdsMAGRPMZL4WupCmWHEDAd8pFfvd48/JV43ku1fM0j3S3ORtl/QF4/medenRuWL633oyCGXXUA==",
1823 1823
       "dev": true,
1824 1824
       "license": "Apache-2.0",
1825 1825
       "dependencies": {
@@ -10336,9 +10336,9 @@
10336 10336
       "dev": true
10337 10337
     },
10338 10338
     "@jitsi/eslint-config": {
10339
-      "version": "6.0.3",
10340
-      "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-6.0.3.tgz",
10341
-      "integrity": "sha512-lGScJO9AASbt2H3XjktpkCZyD1Pp7AK3xGO+n4DIG7gp3KjL+BYKANmrx8pKY03yz7FTsieuTrUiO2IJ7mGQSw==",
10339
+      "version": "6.0.4",
10340
+      "resolved": "https://registry.npmjs.org/@jitsi/eslint-config/-/eslint-config-6.0.4.tgz",
10341
+      "integrity": "sha512-5ReSX/ruQi/JdsMAGRPMZL4WupCmWHEDAd8pFfvd48/JV43ku1fM0j3S3ORtl/QF4/medenRuWL633oyCGXXUA==",
10342 10342
       "dev": true,
10343 10343
       "requires": {
10344 10344
         "@babel/eslint-parser": "^7.25.9",

+ 1
- 1
package.json Переглянути файл

@@ -36,7 +36,7 @@
36 36
     "@babel/core": "7.25.9",
37 37
     "@babel/preset-env": "7.25.9",
38 38
     "@babel/preset-typescript": "7.25.9",
39
-    "@jitsi/eslint-config": "6.0.3",
39
+    "@jitsi/eslint-config": "6.0.4",
40 40
     "@types/async": "3.2.12",
41 41
     "@types/jasmine": "4.0.3",
42 42
     "@types/lodash-es": "4.17.12",

Завантаження…
Відмінити
Зберегти