Skip to content

Commit 9f8e3b0

Browse files
bmeurerDevtools-frontend LUCI CQ
authored andcommitted
[eslint] Forbid use of host option to render() inside views.
Fixed: 435607109 Change-Id: Ia6715fb4a6a5cf8e73d15e6ac5a8774669de0fb3 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6813789 Auto-Submit: Benedikt Meurer <[email protected]> Commit-Queue: Danil Somsikov <[email protected]> Reviewed-by: Danil Somsikov <[email protected]>
1 parent 41b0772 commit 9f8e3b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+148
-82
lines changed

front_end/models/extensions/ExtensionView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLElement)
5151
${ref(element => {output.iframe = element as HTMLIFrameElement; })}
5252
src=${input.src}
5353
class=${input.className}
54-
@load=${input.onLoad}></iframe>`, target, {host: input});
54+
@load=${input.onLoad}></iframe>`, target);
5555
// clang-format on
5656
};
5757

front_end/models/persistence/EditFileSystemView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
126126
</devtools-data-grid>
127127
${input.excludedFolderPaths.filter(({status}) => status !== ExcludedFolderStatus.VALID).map(({status}) =>
128128
html`<span class="excluded-folder-error">${statusString(status)}</span>`)}
129-
</div>`, target, {host: input});
129+
</div>`, target);
130130
// clang-format on
131131
};
132132

front_end/models/persistence/WorkspaceSettingsTab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
9292
@click=${input.onAddClicked}>${i18nString(UIStrings.addFolder)}</devtools-button>
9393
</div>
9494
</div>
95-
</div>`, target, {host: input});
95+
</div>`, target);
9696
// clang-format on
9797
};
9898

front_end/panels/accessibility/SourceOrderView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const DEFAULT_VIEW: View = (input, _output, target) => {
8080
`
8181
}
8282
</div>
83-
`, target, {host: input});
83+
`, target);
8484
// clang-format on
8585
};
8686

front_end/panels/ai_assistance/AiAssistancePanel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ function defaultView(input: ViewInput, output: PanelViewOutput, target: HTMLElem
399399
</div>
400400
`,
401401
target,
402-
{ host: input },
403402
);
404403
// clang-format on
405404
}

front_end/panels/animation/AnimationGroupPreviewUI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const DEFAULT_VIEW: View = (input, output, target) => {
138138
<devtools-icon name="cross"></devtools-icon>
139139
</button>
140140
</div>
141-
`, target, {host: input});
141+
`, target);
142142
// clang-format on
143143
};
144144

front_end/panels/application/KeyValueStorageItemsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export abstract class KeyValueStorageItemsView extends UI.Widget.VBox {
163163
</devtools-widget>
164164
</devtools-split-view>`,
165165
// clang-format on
166-
target, {host: input});
166+
target);
167167
};
168168
}
169169
super();

front_end/panels/application/StorageItemsToolbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: object, target: HTMLElem
9090
</devtools-toolbar>
9191
${input.metadataView}`,
9292
// clang-format on
93-
target, {host: input});
93+
target);
9494
};
9595

9696
export type View = (input: ViewInput, output: object, target: HTMLElement) => void;

front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const DEFAULT_VIEW = (input: ViewInput, _output: object, target: HTMLElement): v
149149
></devtools-toolbar-input>
150150
</devtools-toolbar>`,
151151
// clang-format on
152-
target, {host: input});
152+
target);
153153
};
154154

155155
export class FilterToolbar extends Common.ObjectWrapper.eventMixin<FilterToolbar.EventTypes, typeof UI.Widget.VBox>(

front_end/panels/common/AiCodeCompletionSummaryToolbar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export const DEFAULT_SUMMARY_TOOLBAR_VIEW: View = (input, output, target) => {
120120
${viewSourcesTooltip}
121121
</div>
122122
</div>
123-
`, target, {host: input});
124-
// clang-format on
123+
`, target);
124+
// clang-format on
125125
};
126126

127127
export class AiCodeCompletionSummaryToolbar extends UI.Widget.Widget {

0 commit comments

Comments
 (0)