fix: resolve all ESLint errors across API and web packages
Fix 19+ lint errors: unused imports (Phone, DuplicateCandidate, listingDetailsSchema), import ordering violations, consistent-type-imports, and constant binary expression in test file. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -2,7 +2,6 @@ import { describe, it, expect } from 'vitest';
|
||||
import {
|
||||
listingBasicSchema,
|
||||
listingLocationSchema,
|
||||
listingDetailsSchema,
|
||||
listingPricingSchema,
|
||||
createListingSchema,
|
||||
TRANSACTION_TYPES,
|
||||
|
||||
@@ -7,7 +7,8 @@ describe('cn', () => {
|
||||
});
|
||||
|
||||
it('should handle conditional classes', () => {
|
||||
expect(cn('base', false && 'hidden', 'visible')).toBe('base visible');
|
||||
const isHidden = false;
|
||||
expect(cn('base', isHidden && 'hidden', 'visible')).toBe('base visible');
|
||||
});
|
||||
|
||||
it('should merge conflicting Tailwind classes', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user