lelouchB / final-space-api

Final Space API : RESTful API based on the show Final Space.
https://finalspaceapi.com
BSD 3-Clause "New" or "Revised" License
78 stars 47 forks source link

Add Prettier and Husky to frontend #120

Closed lelouchB closed 3 years ago

lelouchB commented 3 years ago

@JuanVqz Did a great job adding husky and prettier to backend to format code when commiting. See #112

   "husky": {
        "hooks": {
            "pre-commit": "lint-staged"
        }
    },
    "lint-staged": {
        "*.js": "eslint --cache --fix",
        "*.{js,css,md}": "prettier --write"
    }

Add same thing to frontend folder.

binkpitch commented 3 years ago

Can i take this issue?

lelouchB commented 3 years ago

@binkpitch Sure I have assigned this to you. Let me know if you have any questions.

binkpitch commented 3 years ago

@lelouchB Any specific linting settings (for .eslintrc and .prettierc) that you want me to use?

lelouchB commented 3 years ago

@binkpitch Nothing special, I am fine with standard stuff for these. Here is code for backend https://github.com/lelouchB/final-space-api/blob/main/backend/.eslintrc.js https://github.com/lelouchB/final-space-api/blob/main/backend/.prettierrc.json