Added EditorConfig, integrated Prettier, and refined conditional statements
This pull request introduces several enhancements aimed at improving code consistency and readability within the project. The following changes have been made:
EditorConfig Integration: Added an .editorconfig file to establish consistent coding styles across different editors and IDEs. This ensures uniform indentation, line endings, and other formatting settings throughout the project.\
Prettier Integration: Integrated Prettier to automate code formatting and maintain a consistent code style.
Refinement of Conditional Statements: Refined some conditional statements to improve code clarity and efficiency.
Type Separation: Inline types that were previously defined within the code have been moved to a dedicated type declaration.
These changes aim to enhance the overall quality and maintainability of the codebase, making it easier for contributors to collaborate effectively and ensuring a more consistent code style across the project.