eslint-plugin-require-path-exists icon indicating copy to clipboard operation
eslint-plugin-require-path-exists copied to clipboard

wrong linting for aliases

Open its-dibo opened this issue 2 years ago • 0 comments

the rule require-path-exists/exists reports a non-existing module, but it exists and could be read via VS and compiled normally via webpack and ttypescript.

the module is an alias of a real path (paths are defined in tsconfig.json)

tsconfig.json

{
 compilerOptions:{
  paths:{
   "@alias/*": "./real/path/*"
 }
}
}

index.ts

import something from "@alias/anything"

the path real/path/snything.ts exists

edit modifying the path into ./real/path/snything didn't fix the error

its-dibo avatar May 31 '22 23:05 its-dibo