Skip to content

Commit 7acdc5a

Browse files
authored
chore(linter): disable deprecation warnings for APIs (#214)
1 parent f2ea92d commit 7acdc5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/clients/src/api/.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "defaults|request" }],
66
"max-classes-per-file": "off",
77
"tsdoc/syntax": "off",
8-
"no-underscore-dangle": ["error", { "allowAfterThis": true }]
8+
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
9+
"deprecation/deprecation": "off"
910
}
1011
}

packages/clients/src/scw/client-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const assertValidSettings = (obj: Readonly<Settings>): void => {
101101
// API URL.
102102
if (!isURL(obj.apiURL)) throw new Error(`Invalid URL ${obj.apiURL}`)
103103

104-
if (obj.apiURL.substr(-1) === '/')
104+
if (obj.apiURL.slice(-1) === '/')
105105
throw new Error(
106106
`Invalid URL ${obj.apiURL}: it should not have a trailing slash`,
107107
)

0 commit comments

Comments
 (0)