Skip to content

chore: housekeeping, bump all (dev) deps #413

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 5 commits into from
Mar 26, 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
7 changes: 7 additions & 0 deletions .changeset/tiny-ligers-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"eslint-import-resolver-typescript": minor
---

chore: housekeeping, bump all (dev) deps

Migrate `rspack-resolver` to rebranding [`unrs-resolver`](https://github.com/unrs/unrs-resolver) for more targets support and other bug fixes
1 change: 0 additions & 1 deletion .simple-git-hooks.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .simple-git-hooks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@1stg/simple-git-hooks'
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
compressionLevel: mixed

enableTelemetry: false

nodeLinker: node-modules

plugins:
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"lint:es": "eslint . --cache",
"lint:tsc": "tsc --noEmit",
"prepare": "simple-git-hooks && yarn-berry-deduplicate || exit 0",
"release": "clean-pkg-json && changeset publish",
"release": "clean-pkg-json && changeset publish --tag v3.x",
"test": "run-p 'test:*'",
"test:dotInclude": "yarn eslint --ext ts,tsx tests/dotInclude --ignore-pattern \"!.dot\"",
"test:dotPaths": "yarn eslint --ext ts,tsx tests/dotPaths --ignore-pattern \"!.dot\"",
Expand Down Expand Up @@ -84,38 +84,38 @@
"@nolyfill/is-core-module": "1.0.39",
"debug": "^4.4.0",
"get-tsconfig": "^4.10.0",
"is-bun-module": "^1.3.0",
"rspack-resolver": "^1.1.0",
"is-bun-module": "^2.0.0",
"stable-hash": "^0.0.5",
"tinyglobby": "^0.2.12"
"tinyglobby": "^0.2.12",
"unrs-resolver": "^1.3.2"
},
"devDependencies": {
"@1stg/lib-config": "^13.0.1",
"@1stg/common-config": "^11.1.0",
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.28.1",
"@commitlint/cli": "^19.8.0",
"@mozilla/glean": "^5.0.3",
"@pkgr/rollup": "^6.0.0",
"@pkgr/rollup": "^6.0.1",
"@total-typescript/ts-reset": "^0.6.1",
"@types/debug": "^4.1.12",
"@types/node": "^22.13.10",
"@types/node": "^22.13.13",
"@types/pnpapi": "^0.0.5",
"@types/unist": "^3.0.3",
"clean-pkg-json": "^1.2.1",
"cross-env": "^7.0.3",
"dummy.js": "link:dummy.js",
"eslint": "^9.22.0",
"eslint": "^9.23.0",
"eslint-import-resolver-typescript": "link:.",
"eslint-plugin-import-x": "^4.8.0",
"eslint-plugin-import-x": "^4.9.3",
"lint-staged": "^15.5.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.5.3",
"react": "^19.0.0",
"simple-git-hooks": "^2.11.1",
"simple-git-hooks": "^2.12.1",
"size-limit": "^11.2.0",
"size-limit-preset-node-lib": "^0.3.0",
"type-coverage": "^2.29.7",
"type-fest": "^4.37.0",
"type-fest": "^4.38.0",
"typescript": "~5.8.2",
"yarn-berry-deduplicate": "^6.1.1"
},
Expand Down
8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import isNodeCoreModule from '@nolyfill/is-core-module'
import debug from 'debug'
import type { TsConfigResult } from 'get-tsconfig'
import { createPathsMatcher, getTsconfig } from 'get-tsconfig'
import type { Version } from 'is-bun-module'
import { isBunModule } from 'is-bun-module'
import { type NapiResolveOptions, ResolverFactory } from 'rspack-resolver'
import { stableHash } from 'stable-hash'
import { globSync, isDynamicPattern } from 'tinyglobby'
import type { SetRequired } from 'type-fest'
import { type NapiResolveOptions, ResolverFactory } from 'unrs-resolver'

const IMPORTER_NAME = 'eslint-import-resolver-typescript'

Expand Down Expand Up @@ -149,10 +148,7 @@ export function resolve(
source = removeQuerystring(source)

// don't worry about core node/bun modules
if (
isNodeCoreModule(source) ||
isBunModule(source, (process.versions.bun ?? 'latest') as Version)
) {
if (isNodeCoreModule(source) || isBunModule(source)) {
log('matched core:', source)

return {
Expand Down
2 changes: 1 addition & 1 deletion tests/importXResolverV3/eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const absoluteGlobPath = path.join(__dirname, globPattern)
const base = require('../base.eslintrc.cjs')()

module.exports =
// eslint-disable-next-line no-magic-numbers -- don't run on node 16 because lacking of `structuredClone`
// don't run on node 16 because lacking of `structuredClone`
+process.versions.node.split('.')[0] <= 16
? {}
: {
Expand Down
Loading