Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,7 @@ module.exports = [
rules: {
'no-multiple-empty-lines': 'error',
quotes: ['error', 'single', { allowTemplateLiterals: true }],
semi: 'off',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/member-delimiter-style': [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been removed from eslint.

'error',
{
multiline: {
delimiter: 'none',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
multilineDetection: 'brackets',
},
],
semi: ['error', 'never'],
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@
"devDependencies": {
"@types/jsdom": "21.1.7",
"@types/node": "20.16.3",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@vitest/browser": "2.0.5",
"@vitest/utils": "2.0.5",
"cross-fetch": "4.0.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-prettier": "5.2.1",
"happy-dom": "14.12.3",
"happy-dom": "15.7.3",
"jiti": "1.21.6",
"msw": "2.4.1",
"prettier": "3.3.3",
"typescript": "5.5.4",
"typescript-eslint": "7.18.0",
"typescript-eslint": "8.4.0",
"unbuild": "2.0.0",
"vitest": "2.0.5",
"webdriverio": "8.40.3"
Expand Down
201 changes: 87 additions & 114 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/BKTClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class BKTClientImpl implements BKTClient {
}
try {
return JSON.parse(value)
} catch (e) {
} catch {
return defaultValue
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/BKTConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const isValidUrl = (url: string): boolean => {
try {
new URL(url)
return true
} catch (err) {
} catch {
return false
}
}
Expand Down
16 changes: 7 additions & 9 deletions src/internal/model/Reason.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
const ReasonTypeValue = [
'TARGET',
'RULE',
'DEFAULT',
'CLIENT',
'OFF_VARIATION',
'PREREQUISITE',
] as const
Comment on lines -1 to -8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the unused lint warning

export type ReasonType = (typeof ReasonTypeValue)[number]
type ReasonType =
| 'TARGET'
| 'RULE'
| 'DEFAULT'
| 'CLIENT'
| 'OFF_VARIATION'
| 'PREREQUISITE'

export interface Reason {
type: ReasonType
Expand Down
2 changes: 1 addition & 1 deletion src/internal/remote/toBKTException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const toBKTException = async (
const errorBody: ErrorResponse | null = (() => {
try {
return JSON.parse(responseText)
} catch (e) {
} catch {
return null
}
})()
Expand Down
2 changes: 1 addition & 1 deletion src/internal/scheduler/EvaluationTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class EvaluationTask implements ScheduledTask {
this.retryCount = 0
this.reschedule(this.component.config().pollingInterval)
}
} catch (e) {
} catch {
// error
const pollingInterval = this.component.config().pollingInterval
if (pollingInterval <= this.retryPollingInterval) {
Expand Down
Loading