Skip to content

Commit 6c7f94e

Browse files
committed
lint
1 parent cbfd87d commit 6c7f94e

5 files changed

Lines changed: 26 additions & 13 deletions

File tree

front_end/panels/livemate/LivemateModel.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
// Copyright 2026 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
// Copyright (c) Meta Platforms, Inc. and affiliates.
26
// Copyright 2025 The Chromium Authors. All rights reserved.
37
// Use of this source code is governed by a BSD-style license that can be
48
// found in the LICENSE file.
59

610
import * as Common from '../../core/common/common.js';
7-
import * as SDK from '../../core/sdk/sdk.js';
811
import * as ProtocolClient from '../../core/protocol_client/protocol_client.js';
12+
import * as SDK from '../../core/sdk/sdk.js';
913

1014
import {
1115
LivemateEventType,
@@ -214,7 +218,7 @@ export class LivemateModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes
214218
* Handles incoming CDP messages, filtering for Livemate.inspectionDataReceived events.
215219
*/
216220
#handleCdpMessage(message: object): void {
217-
const msg = message as {method?: string; params?: {payload?: string}};
221+
const msg = message as {method?: string, params?: {payload?: string}};
218222

219223
if (msg.method !== LivemateDomain.INSPECTION_DATA_RECEIVED) {
220224
return;

front_end/panels/livemate/LivematePanel.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1+
// Copyright 2026 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
// Copyright (c) Meta Platforms, Inc. and affiliates.
26
// Copyright 2025 The Chromium Authors. All rights reserved.
37
// Use of this source code is governed by a BSD-style license that can be
48
// found in the LICENSE file.
59

10+
import type * as Common from '../../core/common/common.js';
611
import * as i18n from '../../core/i18n/i18n.js';
712
import type * as Platform from '../../core/platform/platform.js';
813
import * as UI from '../../ui/legacy/legacy.js';
9-
import * as Common from '../../core/common/common.js';
1014

11-
import livematePanelStyles from './livematePanel.css.js';
1215
import {
1316
LivemateModel,
1417
Events as LivemateModelEvents,
1518
type EventTypes as LivemateModelEventTypes,
1619
} from './LivemateModel.js';
20+
import livematePanelStyles from './livematePanel.css.js';
1721
import type {ComponentInfo} from './LivemateSpec.js';
1822

1923
let livematePanelInstance: LivematePanel;
@@ -35,14 +39,6 @@ const UIStrings = {
3539
* @description Button text for sending to devmate
3640
*/
3741
sendToDevmate: 'Send to Devmate',
38-
/**
39-
* @description Loading state message
40-
*/
41-
loading: 'Connecting to React Native...',
42-
/**
43-
* @description Error state message
44-
*/
45-
connectionError: 'Failed to connect to React Native runtime',
4642
} as const;
4743

4844
const str_ = i18n.i18n.registerUIStrings(
@@ -245,7 +241,7 @@ export class LivematePanel extends UI.View.SimpleView {
245241
});
246242
}
247243

248-
async #sendCommand(): Promise<{success: boolean; output?: string; error?: string}> {
244+
async #sendCommand(): Promise<{success: boolean, output?: string, error?: string}> {
249245
const input = this.#queryInput;
250246
if (!input) {
251247
return {success: false, error: 'Input not available'};

front_end/panels/livemate/LivemateSpec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2026 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
// Copyright (c) Meta Platforms, Inc. and affiliates.
26
// Copyright 2025 The Chromium Authors. All rights reserved.
37
// Use of this source code is governed by a BSD-style license that can be

front_end/panels/livemate/livemate-meta.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2026 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
// Copyright (c) Meta Platforms, Inc. and affiliates.
26
// Copyright 2024 The Chromium Authors. All rights reserved.
37
// Use of this source code is governed by a BSD-style license that can be
@@ -6,6 +10,7 @@
610
import * as i18n from '../../core/i18n/i18n.js';
711
import * as Root from '../../core/root/root.js';
812
import * as UI from '../../ui/legacy/legacy.js';
13+
914
import type * as Livemate from './livemate.js';
1015

1116
const UIStrings = {

front_end/panels/livemate/livemate.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2026 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
// Copyright (c) Meta Platforms, Inc. and affiliates.
26
// Copyright 2025 The Chromium Authors. All rights reserved.
37
// Use of this source code is governed by a BSD-style license that can be

0 commit comments

Comments
 (0)