related: import-js/eslint-import-resolver-typescript#47
Minimal reproduction:
// test.ts
export * from 'typescript/lib/typescript.d'
# .eslint.yml
parserOptions:
ecmaVersion: 2020
sourceType: module
extends:
- plugin:import/errors
- plugin:import/typescript
run: eslint test.ts
error log:
TypeError: Cannot read property 'type' of null
Occurred while linting /workspace/eslint-import-resolver-typescript-repro/src.ts:1
at /workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/ExportMap.js:569:30
at Array.forEach (<anonymous>)
at /workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/ExportMap.js:565:32
at Array.forEach (<anonymous>)
at /workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/ExportMap.js:563:19
at Array.forEach (<anonymous>)
at Function.ExportMap.parse (/workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/ExportMap.js:477:12)
at Function.ExportMap.for (/workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/ExportMap.js:361:25)
at Function.ExportMap.get (/workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/ExportMap.js:316:23)
at processBodyStatement (/workspace/eslint-import-resolver-typescript-repro/node_modules/eslint-plugin-import/lib/rules/namespace.js:67:47)
After downgrading to ~2.18.2, there will be no error any more.
related: import-js/eslint-import-resolver-typescript#47
Minimal reproduction:
run:
eslint test.tserror log:
After downgrading to
~2.18.2, there will be no error any more.