mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
Refactor transaction components and styles
- Updated imports to use absolute paths for types and utilities. - Enhanced TransactionTable component with mobile responsiveness and card-based layout. - Improved loading and error handling in transaction fetching logic. - Refactored transaction update API to streamline validation and data preparation. - Added new styles for Radix UI components and improved global styles for better mobile experience. - Implemented collapsible sections and improved button interactions in the UI. - Updated tests to reflect changes in component structure and imports.
This commit is contained in:
18
README.md
18
README.md
@@ -75,4 +75,20 @@ import type { Transaction } from '@types';
|
||||
|
||||
// ❌ DON'T use relative imports like this
|
||||
import { transactionService } from '../../../../data/db.service';
|
||||
```
|
||||
```
|
||||
|
||||
### Enforcing Path Aliases with Biome.js
|
||||
|
||||
This project uses [Biome.js](https://biomejs.dev/) for code formatting and linting. Biome enforces the use of path aliases instead of relative imports. To run Biome checks:
|
||||
|
||||
```bash
|
||||
npm run check
|
||||
```
|
||||
|
||||
To automatically fix issues:
|
||||
|
||||
```bash
|
||||
npm run check -- --apply
|
||||
```
|
||||
|
||||
The Biome configuration (in `biome.json`) includes rules for import sorting and path alias enforcement. To customize the rules, edit the `biome.json` file.
|
||||
Reference in New Issue
Block a user