Skip to content

Commit f40a1f7

Browse files
committed
feat: using aliases
1 parent 5dd7c3c commit f40a1f7

File tree

14 files changed

+575
-499
lines changed

14 files changed

+575
-499
lines changed

README.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,27 @@ The project follows a standard React application structure:
3434
- `2024/`: Components specific to the 2024 conference edition
3535
- `2023/`: Components specific to the 2023 conference edition
3636

37+
## Path Aliases
38+
39+
This project uses path aliases to simplify imports. Instead of using relative
40+
paths like `../../components/Button`, you can use aliases like
41+
`@components/Button`.
42+
43+
Available aliases:
44+
45+
- `@components/*` - Components from `src/components/`
46+
- `@constants/*` - Constants from `src/constants/`
47+
- `@services/*` - Services from `src/services/`
48+
- `@hooks/*` - Hooks from `src/hooks/`
49+
- `@assets/*` - Assets from `src/assets/`
50+
- `@styles/*` - Styles from `src/styles/`
51+
- `@views/*` - Views from `src/views/`
52+
- `@utils/*` - Utilities from `src/utils/`
53+
- `@data/*` - Data from `src/data/`
54+
- `@types/*` - Types from `src/types/`
55+
56+
For more details, see the [Path Aliases Documentation](docs/path-aliases.md).
57+
3758
## Development Workflow
3859

3960
### Getting Started
@@ -50,21 +71,23 @@ The project follows a standard React application structure:
5071
- `npm run test-coverage`: Run tests with coverage reporting
5172
- `npm run build`: Build for production
5273
- `npm run deploy`: Deploy to GitHub Pages
53-
- `npm run eject`: Eject from Create React App (not recommended)
74+
- `npm run lint`: Run ESLint to check for code quality issues
75+
- `npm run lint:fix`: Run ESLint and automatically fix fixable issues
5476

5577
## Contribution Guidelines
5678

5779
When contributing to this project, please:
5880

5981
1. Follow the existing code style and patterns
60-
2. Write tests for new features
61-
3. Ensure all tests pass before submitting pull requests
62-
4. Keep the UI consistent with the existing design
63-
5. Document any new components or significant changes
82+
2. Run ESLint (`npm run lint`) to ensure code quality and fix any issues
83+
3. Write tests for new features
84+
4. Ensure all tests pass before submitting pull requests
85+
5. Keep the UI consistent with the existing design
86+
6. Document any new components or significant changes
6487

6588
## Contact
6689

6790
For questions or issues related to the DevBcn website, please open an issue in
6891
this repository.
6992

70-
Visit the live site at [https://www.devbcn.com](https://www.devbcn.com)
93+
Visit the live site at [https://www.devbcn.com](https://www.devbcn.com)

0 commit comments

Comments
 (0)