Skip to content

Commit 468bb07

Browse files
committed
fix: linting issues
1 parent 687198d commit 468bb07

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

scripts/gen_site.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/bin/bash
22

3+
# Copyright Istio Authors
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
317
set -ex
418

519
mkdir -p generated/js generated/img tmp/js
@@ -47,5 +61,4 @@ esbuild tmp/js/themes_init.js \
4761
--sourcemap \
4862
--outfile=generated/js/themes_init.min.js
4963

50-
# Step 5: Generate SVG sprite
5164
svgstore -o generated/img/icons.svg src/icons/**/*.svg

src/ts/overlays.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ declare class Popper {
2020
declare var iconFile: string;
2121
// Path to the SVG icon sprite file
2222

23-
2423
// tracks any overlay displayed on the page (e.g. menu or popover)
2524
let overlay: HTMLElement | null = null;
2625
let popper: Popper | null = null;

src/ts/scroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { getById , listen } from "./utils";
1717
import { click } from "./constants";
1818
let scrollToTopButton: HTMLElement | null;
1919
let tocLinks: HTMLCollectionOf<HTMLAnchorElement>;
20-
let tocHeadings: HTMLElement[] = [];
20+
const tocHeadings: HTMLElement[] = [];
2121
let pageHeader: HTMLElement | null;
2222

2323
function handleScroll(): void {

0 commit comments

Comments
 (0)