fix(lint): resolve all 49 lint warnings and errors across codebase
- Remove unused imports/variables in seed scripts and test files - Replace console.log with console.warn in seed/utility scripts - Replace `as any` with proper Prisma types (InputJsonValue, PaymentStatus, Plan, UserWhereInput) - Fix import-x/no-named-as-default-member warnings in logger, mapbox, eslint config - Prefix unused callback params with underscore in e2e tests Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -98,7 +98,7 @@ export const PLANS = [
|
||||
];
|
||||
|
||||
async function seedPlans() {
|
||||
console.log('Seeding subscription plans...\n');
|
||||
console.warn('Seeding subscription plans...\n');
|
||||
|
||||
for (const plan of PLANS) {
|
||||
const _result = await prisma.plan.upsert({
|
||||
@@ -115,10 +115,10 @@ async function seedPlans() {
|
||||
});
|
||||
|
||||
const monthly = Number(plan.priceMonthlyVND).toLocaleString('vi-VN');
|
||||
console.log(` ${plan.tier.padEnd(12)} ${plan.name.padEnd(14)} ${monthly} VND/tháng`);
|
||||
console.warn(` ${plan.tier.padEnd(12)} ${plan.name.padEnd(14)} ${monthly} VND/tháng`);
|
||||
}
|
||||
|
||||
console.log(`\n${PLANS.length} plans seeded.`);
|
||||
console.warn(`\n${PLANS.length} plans seeded.`);
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
|
||||
Reference in New Issue
Block a user