Skip to content

Commit 35d67f2

Browse files
authored
chore: add test case for #409 (#416)
1 parent 5588948 commit 35d67f2

File tree

14 files changed

+421
-359
lines changed

14 files changed

+421
-359
lines changed

.codesandbox/ci.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"node": "18",
3-
"sandboxes": []
3+
"sandboxes": [],
4+
"packages": [
5+
"."
6+
]
47
}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
title: 'chore: release eslint-import-resolver-typescript'
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_CONFIG_PROVENANCE: true
4647
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.20.7
1+
18.20.8

.yarn/releases/yarn-4.7.0.cjs renamed to .yarn/releases/yarn-4.8.0.cjs

Lines changed: 331 additions & 331 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ plugins:
99
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
1010
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
1111

12-
yarnPath: .yarn/releases/yarn-4.7.0.cjs
12+
yarnPath: .yarn/releases/yarn-4.8.0.cjs

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ If either fails, we won't be able to merge your PR until it's fixed.
332332

333333
## Sponsors
334334

335-
| 1stG | RxTS | UnTS |
336-
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
337-
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
335+
| 1stG | RxTS | UnTS |
336+
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
337+
| [![1stG Open Collective sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
338338

339339
## Backers
340340

341-
| 1stG | RxTS | UnTS |
342-
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
343-
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
341+
| 1stG | RxTS | UnTS |
342+
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
343+
| [![1stG Open Collective backers](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
344344

345345
## Changelog
346346

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
"contributors": [
99
"JounQin <admin@1stg.me> (https://www.1stG.me)"
1010
],
11-
"funding": "https://opencollective.com/unts/projects/eslint-import-resolver-ts",
11+
"funding": "https://opencollective.com/eslint-import-resolver-typescript",
1212
"license": "ISC",
13-
"packageManager": "yarn@4.7.0",
13+
"workspaces": [
14+
".",
15+
"tests/nestedPackageJson"
16+
],
17+
"packageManager": "yarn@4.8.0",
1418
"engines": {
1519
"node": "^16.17.0 || >=18.6.0"
1620
},
@@ -55,6 +59,7 @@
5559
"test:multipleEslintrcs": "yarn eslint --ext ts,tsx tests/multipleEslintrcs",
5660
"test:multipleTsconfigs": "yarn eslint --ext ts,tsx tests/multipleTsconfigs",
5761
"test:nearestTsconfig": "yarn eslint --ext ts,tsx tests/nearestTsconfig",
62+
"test:nestedPackageJson": "yarn eslint --ext ts,tsx tests/nestedPackageJson",
5863
"test:unit": "vitest --run",
5964
"test:withJsExtension": "node tests/withJsExtension/test.js && yarn eslint --ext ts,tsx tests/withJsExtension",
6065
"test:withJsconfig": "yarn eslint --ext js tests/withJsconfig",
@@ -94,7 +99,7 @@
9499
"@pkgr/rollup": "^6.0.1",
95100
"@total-typescript/ts-reset": "^0.6.1",
96101
"@types/debug": "^4.1.12",
97-
"@types/node": "^22.13.13",
102+
"@types/node": "^22.13.14",
98103
"@types/pnpapi": "^0.0.5",
99104
"@types/unist": "^3.0.3",
100105
"@vitest/coverage-v8": "3.0.9",
@@ -111,7 +116,7 @@
111116
"simple-git-hooks": "^2.12.1",
112117
"size-limit": "^11.2.0",
113118
"size-limit-preset-node-lib": "^0.3.0",
114-
"tinyexec": "^1.0.0",
119+
"tinyexec": "^1.0.1",
115120
"type-coverage": "^2.29.7",
116121
"typescript": "~5.8.2",
117122
"vitest": "^3.0.9",

tests/base.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @import {TSESLint} from '@typescript-eslint/utils'
3-
* @param {string} project
3+
* @param {string | string[]} project
44
* @returns {TSESLint.ClassicConfig.Config}
55
*/
66
const base = project => ({

tests/nestedPackageJson/.eslintrc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const path = require('node:path')
2+
3+
module.exports = require('../base.eslintrc.cjs')(
4+
path.resolve(__dirname, 'tsconfig.json'),
5+
)

tests/nestedPackageJson/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.yarn/*

0 commit comments

Comments
 (0)