AlgosGitHub / KindleTwitchController

Twitch Chat Moderation and OBS Control Panel tailored for Kindle devices.
MIT License
1 stars 0 forks source link

Adding Standardized Code Formatting for Web Components #28

Closed MarioMottl closed 11 months ago

MarioMottl commented 11 months ago

Currently, the code formatting across the web components lacks consistency, making it challenging for developers to maintain a uniform code style. To address this, I propose the adoption of Prettier as the standard code formatter for all web components within the project. Prettier is already installed by default in IntelliJ, providing a seamless integration for our development environment.

Proposes formatter settings:

{
    "tabWidth": 4,
    "bracketSpacing": true,
    "bracketSameLine": true,
    "arrowParens": "avoid",
    "proseWrap": "always"
}

IntelliJ Hints: There is either an prompt asking you if you want to format this project with Prettier or you can open the command prompt (Ctrl + Shift + A at default settings) and choose Reformat Code with Prettier

Note: I excluded the Java components from the code formatting until @AlgosGitHub says otherwise