Skip to content

Commit c0e4e7c

Browse files
committed
fix(imports-as-dependencies): check within exports for types; fixes #1114
1 parent 8aa719c commit c0e4e7c

File tree

5 files changed

+581
-450
lines changed

5 files changed

+581
-450
lines changed

docs/rules/imports-as-dependencies.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,9 @@ The following patterns are not considered problems:
9595
/**
9696
* @type {null|import('node:fs').PathLike}
9797
*/
98+
99+
/**
100+
* @type {null|import('playwright').SomeApi}
101+
*/
98102
````
99103

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"dependencies": {
88
"@es-joy/jsdoccomment": "~0.76.0",
9+
"@es-joy/resolve.exports": "1.0.0",
910
"are-docs-informative": "^0.0.2",
1011
"comment-parser": "1.4.1",
1112
"debug": "^4.4.3",
@@ -23,29 +24,29 @@
2324
"devDependencies": {
2425
"@arethetypeswrong/cli": "^0.18.2",
2526
"@babel/cli": "^7.28.3",
26-
"@babel/core": "^7.28.4",
27-
"@babel/eslint-parser": "^7.28.4",
27+
"@babel/core": "^7.28.5",
28+
"@babel/eslint-parser": "^7.28.5",
2829
"@babel/plugin-syntax-class-properties": "^7.12.13",
2930
"@babel/plugin-transform-flow-strip-types": "^7.27.1",
30-
"@babel/preset-env": "^7.28.3",
31+
"@babel/preset-env": "^7.28.5",
3132
"@es-joy/escodegen": "^4.2.0",
32-
"@es-joy/jsdoc-eslint-parser": "^0.24.0",
33+
"@es-joy/jsdoc-eslint-parser": "^0.25.0",
3334
"@eslint/core": "^0.16.0",
3435
"@hkdobrev/run-if-changed": "^0.6.3",
3536
"@semantic-release/commit-analyzer": "^13.0.1",
3637
"@semantic-release/github": "^12.0.0",
3738
"@semantic-release/npm": "^13.1.1",
38-
"@types/chai": "^5.2.2",
39+
"@types/chai": "^5.2.3",
3940
"@types/debug": "^4.1.12",
4041
"@types/espree": "^10.1.0",
4142
"@types/esquery": "^1.5.4",
4243
"@types/estree": "^1.0.8",
4344
"@types/json-schema": "^7.0.15",
4445
"@types/mocha": "^10.0.10",
45-
"@types/node": "^24.8.1",
46+
"@types/node": "^24.9.1",
4647
"@types/semver": "^7.7.1",
4748
"@types/spdx-expression-parse": "^3.0.5",
48-
"@typescript-eslint/types": "^8.46.1",
49+
"@typescript-eslint/types": "^8.46.2",
4950
"babel-plugin-add-module-exports": "^1.0.4",
5051
"babel-plugin-istanbul": "^7.0.1",
5152
"babel-plugin-transform-import-meta": "^2.3.3",
@@ -62,14 +63,15 @@
6263
"jsdoc-type-pratt-parser": "^6.11.0",
6364
"json-schema": "^0.4.0",
6465
"json-schema-to-typescript": "^15.0.4",
65-
"lint-staged": "^16.2.4",
66+
"lint-staged": "^16.2.6",
6667
"mocha": "^11.7.4",
6768
"open-editor": "^5.1.0",
69+
"playwright": "^1.56.1",
6870
"replace": "^1.2.2",
6971
"rimraf": "^6.0.1",
7072
"semantic-release": "^25.0.1",
7173
"typescript": "5.9.3",
72-
"typescript-eslint": "^8.46.1"
74+
"typescript-eslint": "^8.46.2"
7375
},
7476
"engines": {
7577
"node": ">=20.11.0"

0 commit comments

Comments
 (0)