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?
Currently I'm using eslint for code lint, basically auto set up by command
npm init @eslint/config
, but it keep saying likeimport 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
:npm run lint
output:dependicies versions: