Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f30da7b

Browse files
committed
chore(site): enable no-redeclare oxlint rule
1 parent d726903 commit f30da7b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

site/.oxlintrc.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
"one-var": ["error", "never"],
135135
"prefer-number-properties": ["error", { "checkInfinity": true }],
136136
"no-else-return": ["error", { "allowElseIf": false }],
137+
"no-inferrable-types": "error",
137138

138139
// --- suspicious ---
139140
"no-cond-assign": "error",
@@ -206,7 +207,6 @@
206207
"no-autofocus": "off", // a11y/noAutofocus (large)
207208
"no-invalid-void-type": "off", // suspicious/noConfusingVoidType (large)
208209
"no-redeclare": "off", // suspicious/noRedeclare (medium: TS declaration merging)
209-
"no-inferrable-types": "off", // style/noInferrableTypes (medium, coder error rule)
210210
"jsx-curly-brace-presence": "off", // style/useConsistentCurlyBraces (medium, coder error rule)
211211
"no-fallthrough": "off", // suspicious/noFallthroughSwitchClause (medium)
212212
"click-events-have-key-events": "off", // a11y/useKeyWithClickEvents (small)

site/src/api/queries/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const templateExamples = () => {
149149
};
150150
};
151151

152-
export const templateVersionRoot: string = "templateVersion";
152+
export const templateVersionRoot = "templateVersion";
153153

154154
export const templateVersion = (versionId: string) => {
155155
return {

site/src/testHelpers/entities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ export const MockImportedUserSecrets: TypesGen.UserSecret[] = [
662662
},
663663
];
664664

665-
export const MockAIGatewayEnabled: boolean = true;
665+
export const MockAIGatewayEnabled = true;
666666

667667
export const MockOrganizationMember: TypesGen.OrganizationMemberWithUserData = {
668668
organization_id: MockOrganization.id,

0 commit comments

Comments
 (0)