chore: add ESLint configuration for api and web packages
Some checks failed
CI / test (push) Failing after 43s
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:
parent
a1590e7228
commit
857ffcd6b4
14 changed files with 46 additions and 38 deletions
|
@ -91,7 +91,7 @@ export class MinioService {
|
|||
try {
|
||||
await this.client.statObject(this.bucketName, objectName);
|
||||
return true;
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
|
||||
import { MercuriusContext } from 'mercurius';
|
||||
|
||||
const isCallback = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue