chore: add ESLint configuration for api and web packages
Some checks failed
CI / test (push) Failing after 43s

- Introduced ESLint configuration files for both api and web packages to enforce coding standards.
- Updated MinioService and TokenService to improve error handling and type definitions.
- Refactored localStorage access in web components to use window.localStorage for consistency.
- Enhanced ESLint rules in base configuration to improve code quality and maintainability.
This commit is contained in:
Juan Sebastián Montoya 2025-05-06 01:16:16 -05:00
parent a1590e7228
commit 857ffcd6b4
14 changed files with 46 additions and 38 deletions

View file

@ -91,7 +91,7 @@ export class MinioService {
try {
await this.client.statObject(this.bucketName, objectName);
return true;
} catch (error) {
} catch (_error) {
return false;
}
}

View file

@ -90,7 +90,7 @@ export class TokenService {
);
const tx = txn
? (callback: Function) => callback(txn)
? (callback: (tx: TransactionClient) => Promise<void>) => callback(txn)
: this.prisma.$transaction.bind(this.prisma);
await tx(async (tx) => {

View file

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
import { MercuriusContext } from 'mercurius';
const isCallback = (