Skip to content

Commit ba52ccd

Browse files
authored
Fix lint errors (#2371)
## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet
1 parent e2ee82a commit ba52ccd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cursorless-vscode/src/ide/vscode/hats/FontMeasurementsImpl.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ function getFontRatios(extensionContext: vscode.ExtensionContext) {
7070
},
7171
);
7272

73-
const font_measurement_js = panel.webview.asWebviewUri(
73+
const fontMeasurementJs = panel.webview.asWebviewUri(
7474
vscode.Uri.joinPath(
7575
extensionContext.extensionUri,
7676
"resources",
7777
"font_measurements.js",
7878
),
7979
);
80-
panel.webview.html = getWebviewContent(panel.webview, font_measurement_js);
80+
panel.webview.html = getWebviewContent(panel.webview, fontMeasurementJs);
8181

8282
interface FontRatios {
8383
/**
@@ -112,7 +112,7 @@ function getFontFamily() {
112112

113113
function getWebviewContent(
114114
webview: vscode.Webview,
115-
font_measurement_js: vscode.Uri,
115+
fontMeasurementJs: vscode.Uri,
116116
) {
117117
// baseline adjustment based on https://stackoverflow.com/a/27295528
118118
return `<!DOCTYPE html>
@@ -126,7 +126,7 @@ function getWebviewContent(
126126
<div id="container">
127127
<span id="letter" style="line-height: 0; visibility:hidden; font-size: 1000px; font-family: var(--vscode-editor-font-family); font-weight: var(--vscode-editor-font-weight);">A</span>
128128
</div>
129-
<script src="${font_measurement_js}"></script>
129+
<script src="${fontMeasurementJs}"></script>
130130
</body>
131131
</html>`;
132132
}

0 commit comments

Comments
 (0)