cv-frontend-vue icon indicating copy to clipboard operation
cv-frontend-vue copied to clipboard

🐞 Bug: eslint not configured for typescript

Open adityanandanx opened this issue 10 months ago • 4 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues.

Describe the bug

Image

Image

  • Various eslint errors while using typescript

Steps to Reproduce

  1. Setup the project using the installation guide in the readme
  2. temporarily change the lint script in package.json to not write any changes and to include typescript files -
    "lint": "eslint --ext .js,.vue,.ts --ignore-path .gitignore --no-fix src",
    
  3. run npm run lint
  4. see many problems Image

Expected Behavior

Ideally, no eslint errors. But since this can be a really big change, we can atleast start by letting eslint know that there will be typescript code in the project by using the eslint-typescript plugin.

Screenshots

Image

Is the faced issue/bug related to the Vue simulator?

Yes

Used Vue simulator with or without backend?

Without Backend

Is the bug present only on the dev server, the build, or both?

Dev Server Only

Device Information

OS: Arch Linux
Browser: Chrome
Version: 130.0.6723.91 (Official Build) (64-bit)

Additional Context

My first approach to solve this issue would be to add the eslint-typescript plugin to allow eslint to recognize typescript. There's also some globalVariables involved so there must be a global declaration file global.d.ts which declares the types for the appropriate global variables. I don't know what is the status of adopting typescript in this project is, but things seem to be all over the place with variables with any declarations and js being used at various places. This issue may just be redundant as this may be something which goes rather deep, but I can atleast start clearing the top of the rabbithole and do my part. Thanks

Are you working on this issue?

Yes

adityanandanx avatar Jan 20 '25 15:01 adityanandanx