Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import-x/resolver settings syntax #153

Closed
AaronPorts opened this issue Sep 8, 2024 · 1 comment
Closed

import-x/resolver settings syntax #153

AaronPorts opened this issue Sep 8, 2024 · 1 comment

Comments

@AaronPorts
Copy link

AaronPorts commented Sep 8, 2024

I'm using eslint-import-resolver-oxc and it seems "import-x/resolver": "oxc" doesn't work, firing Unable to resolve path to module, while "import-x/resolver": { oxc: true } works as expected.

languageOptions: {
  parser: typescriptParser,
  sourceType: "module",
  parserOptions: {
    ecmaVersion: "latest",
    projectService: true,
    tsconfigRootDir: import.meta.dirname,
  },
},
settings: {
  "import-x/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
  "import-x/resolver": { oxc: true },
},
@vladshcherbin
Copy link

This one worked for with just 'oxc' using latest versions so it might be fixed. The new resolver syntax obsoletes this issue anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants