Fix linting according to new rules, and disable buggy rules.
This commit is contained in:
@ -757,6 +757,7 @@ class ExternalAuthOIDC {
|
||||
* @throws Error
|
||||
* @returns the singleton
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
||||
public static singleton (singletonType: ExternalAuthOIDCType | string): ExternalAuthOIDC {
|
||||
if (!singletons) {
|
||||
throw new Error('ExternalAuthOIDC singletons are not initialized yet')
|
||||
|
@ -307,6 +307,7 @@ async function _store (options: RegisterServerOptions, filePath: string, content
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
||||
async function _get (options: RegisterServerOptions, filePath: string): Promise<any | null> {
|
||||
const logger = options.peertubeHelpers.logger
|
||||
try {
|
||||
|
@ -142,6 +142,7 @@ async function initWebchatRouter (options: RegisterServerOptionsV5): Promise<Rou
|
||||
res.status(200)
|
||||
res.type('html')
|
||||
res.send(page)
|
||||
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
||||
} catch (err: LivechatError | any) {
|
||||
const code = err.livechatError?.code ?? 500
|
||||
const additionnalMessage: string = escapeHTML(err.livechatError?.message as string ?? '')
|
||||
|
Reference in New Issue
Block a user