---
title: "Comment by Malin Hanák on \"Setting up ESLint & Prettier in ViteJS\" | Hashnode"
description: "I wonder if you ever ran into some issues with eslint being unable to resolve absolute paths when running linting. I am but I am, I have both baseURL in tsconfi"
url: "https://hashnode.com/posts/setting-up-eslint-prettier-in-vitejs/62f4d0e72e865683123df26d/comment/63f5b9c4f338bec1cf2df4f4"
---

[Discussion](https://hashnode.com/posts/setting-up-eslint-prettier-in-vitejs/62f4d0e72e865683123df26d)

Comment [Setting up ESLint & Prettier in ViteJS](https://hashnode.com/posts/setting-up-eslint-prettier-in-vitejs/62f4d0e72e865683123df26d)

[Malin Hanák](https://hashnode.com/@Mallan)

[Feb 22, 2023](https://hashnode.com/posts/setting-up-eslint-prettier-in-vitejs/62f4d0e72e865683123df26d/comment/63f5b9c4f338bec1cf2df4f4)

I wonder if you ever ran into some issues with eslint being unable to resolve absolute paths when running linting. I am but I am, I have both baseURL in tsconfig and using vite-tsconfig-paths for vite config but eslint seems to need something else.

[Malin Hanák](https://hashnode.com/@Mallan)

[Feb 22, 2023](https://hashnode.com/posts/setting-up-eslint-prettier-in-vitejs/62f4d0e72e865683123df26d/comment/63f5b9c4f338bec1cf2df4f4#reply-63f5c7b8f338bec1cf2df74f)

would just like to add that I solved this by adding following to the eslintrc:

```
"import/resolver": {
      ...
      "typescript": {}
    }
```
