Skip to content

Commit da44000

Browse files
committed
enable prefer const rule, remove onetrust test
1 parent 4b1833e commit da44000

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.github/workflows/publish-preview.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
name: Build
3232
env:
3333
NODE_OPTIONS: --max-old-space-size=4096
34-
CF_PAGES_BRANCH: production
3534
- run: npx wrangler pages deploy --project-name cloudflare-docs dist
3635
name: Deploy to Cloudflare Pages
3736
env:

bin/validate-redirects.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ async function main() {
66
let numInfiniteRedirects = 0;
77
let numUrlsWithFragment = 0;
88
let numDuplicateRedirects = 0;
9-
let redirectSourceUrls: string[] = [];
9+
10+
const redirectSourceUrls: string[] = [];
1011

1112
for (const line of redirects.split("\n")) {
1213
if (line.startsWith("#") || line.trim() === "") continue;

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export default [
3030
},
3131
{
3232
rules: {
33-
"prefer-const": "off",
3433
"no-var": "error",
3534
"@typescript-eslint/no-explicit-any": "off",
3635
"@typescript-eslint/triple-slash-reference": "off",

src/components/FieldCatalog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const FieldCatalog = ({ fields }: { fields: Fields }) => {
4141

4242
if (filters.search) {
4343
// search keywords
44-
let keywordFound = field.keywords?.some(
44+
const keywordFound = field.keywords?.some(
4545
(kw) => kw.indexOf(filters.search) >= 0,
4646
);
4747

src/pages/search.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ import "instantsearch.css/themes/satellite.css";
131131

132132
return (widgetParams: any) => {
133133
const widget = makeWidget(widgetParams);
134-
let state: {
134+
const state: {
135135
windowClickListener?: (event: MouseEvent) => void;
136136
} = {};
137137
let rootElem: HTMLElement | null;

0 commit comments

Comments
 (0)