chore(twenty-server): remove eslint warn + add maxWarning 0 (#10103)

This commit is contained in:
Antoine Moreaux
2025-02-11 10:38:43 +01:00
committed by GitHub
parent 59af303b4c
commit de91a5e39e
17 changed files with 57 additions and 34 deletions

View File

@ -36,10 +36,7 @@ export class GoogleAPIsOauthExchangeCodeForTokenGuard extends AuthGuard(
);
}
new GoogleAPIsOauthExchangeCodeForTokenStrategy(
this.environmentService,
{},
);
new GoogleAPIsOauthExchangeCodeForTokenStrategy(this.environmentService);
setRequestExtraParams(request, {
transientToken: state.transientToken,

View File

@ -64,7 +64,7 @@ export class GoogleAPIsOauthRequestCodeGuard extends AuthGuard('google-apis') {
);
}
new GoogleAPIsOauthRequestCodeStrategy(this.environmentService, {});
new GoogleAPIsOauthRequestCodeStrategy(this.environmentService);
return (await super.canActivate(context)) as boolean;
} catch (err) {

View File

@ -16,10 +16,7 @@ export class GoogleAPIsOauthCommonStrategy extends PassportStrategy(
Strategy,
'google-apis',
) {
constructor(
environmentService: EnvironmentService,
scopeConfig: GoogleAPIScopeConfig,
) {
constructor(environmentService: EnvironmentService) {
const scopes = getGoogleApisOauthScopes();
super({

View File

@ -12,11 +12,8 @@ export type GoogleAPIScopeConfig = {
@Injectable()
export class GoogleAPIsOauthExchangeCodeForTokenStrategy extends GoogleAPIsOauthCommonStrategy {
constructor(
environmentService: EnvironmentService,
scopeConfig: GoogleAPIScopeConfig,
) {
super(environmentService, scopeConfig);
constructor(environmentService: EnvironmentService) {
super(environmentService);
}
async validate(

View File

@ -10,11 +10,8 @@ export type GoogleAPIScopeConfig = {
@Injectable()
export class GoogleAPIsOauthRequestCodeStrategy extends GoogleAPIsOauthCommonStrategy {
constructor(
environmentService: EnvironmentService,
scopeConfig: GoogleAPIScopeConfig,
) {
super(environmentService, scopeConfig);
constructor(environmentService: EnvironmentService) {
super(environmentService);
}
authenticate(req: any, options: any) {

View File

@ -1,3 +1,4 @@
/* eslint-disable */
export const main = async (params: {
a: string;
b: number;