SkywardAI / chat-frontend

Frontend of AI-copilot
Apache License 2.0
0 stars 2 forks source link

Frontend lint setup #108

Open cbh778899 opened 3 days ago

cbh778899 commented 3 days ago

Currently I'm using eslint for code lint, basically auto set up by command npm init @eslint/config, but it keep saying like import type {xxx} from xxx is wrong syntax. I tried also @barbel/eslint-parser, it would only cause more errors. I'm not familiar with both typescript and eslint setup, do anyone got any ideas on this?

eslint.config.js: image

npm run lint output: image

dependicies versions:

"@eslint/js": "^9.5.0", "eslint": "^9.5.0", "eslint-plugin-vue": "^9.26.0", "globals": "^15.6.0", "typescript-eslint": "^7.14.1"

cbh778899 commented 3 days ago

see branch lint-dev, it's not yet PR'd

Aisuko commented 3 days ago

This is an issue, we need to do more research on it.