최대 1 분 소요

require

  • eslit-import-resolver-typescript
$ yarn add -D eslint-import-resolver-typescript

tsconfig.json

{
  "compilerOptions": {
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

eslint.json

{
  "import/parsers": {
    "@typescript-eslint/parser": [".ts", ".tsx"]
  },
  "import/resolver": {
    "typescript": {}
  }
}

댓글남기기