AlexSergey / eslint-plugin-file-extension-in-import-ts

18 stars 6 forks source link

Bug: not compatible with tsconfig path aliases #12

Open aaron-apogeeze opened 2 months ago

aaron-apogeeze commented 2 months ago

One of our repositories was set up to use aliased file imports via the tsconfig.json file:

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

The file imports are getting ignored by the current version of the plugin.

I have a working fix.

Is this something that you are interested in supporting? If so, what additional changes (naming, documentation, etc) do you need for it to be ready to merge?

AlexSergey commented 2 months ago

@aaron-apogeeze Thank you for PR! Could you create reproducable project (separate github project with setup alias and eslint)? Need to test more this approach. And also, could you make a chapter in Readme with alias description.