Skip to content

refactor: replace resolver-oxc with new resolver-typescript #295

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

Merged
merged 1 commit into from
Apr 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@eslint/compat'
import jsPlugin from '@eslint/js'
import tsParser from '@typescript-eslint/parser'
import { createOxcImportResolver } from 'eslint-import-resolver-oxc'
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript'
import { flatConfigs as origImportXFlatConfigs } from 'eslint-plugin-import-x'
import jsdocPlugin from 'eslint-plugin-jsdoc'
import nodePlugin from 'eslint-plugin-n'
Expand Down Expand Up @@ -140,11 +140,8 @@ function getImportXFlatConfigs(isEsm) {
settings: {
...origImportXFlatConfigs.typescript.settings,
'import-x/resolver-next': [
createOxcImportResolver({
tsConfig: {
configFile: rootTsConfigPath,
references: 'auto'
}
createTypeScriptImportResolver({
project: rootTsConfigPath
})
]
},
Expand Down
267 changes: 32 additions & 235 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"cross-env": "7.0.3",
"del-cli": "6.0.0",
"eslint": "9.24.0",
"eslint-import-resolver-oxc": "0.13.1",
"eslint-import-resolver-typescript": "4.3.2",
"eslint-plugin-import-x": "4.10.2",
"eslint-plugin-jsdoc": "50.6.9",
"eslint-plugin-n": "17.17.0",
Expand Down