The @eslint/config-helpers
exported types are defined based on types defined
in eslint
(via import('eslint')
, see
config-helpers type source),
but @eslint/config-helpers
does not declare eslint
as a (possibly peer)
dependency. Therefore, attempting to utilize the types with only
@eslint/config-helpers
installed will fail. Furthermore, because no dependency
range is enforced, attempting to use @eslint/config-helpers
with eslint 8
(@types/eslint
) installed will pick up wrong types.
This is relevant for
making typescript-eslint types compatible with defineConfig()
.
npm i
npm test
This can also easily be observed within the VS Code editor by navigating to
node_modules/@eslint/config-helpers/dist/esm/index.d.ts
and observing the
unresolved type imports.
Note - this error can be suppressed within this demo by skipLibCheck: true
,
but it just turns types into any
- still unsuitable for someone attempting to
use the exported types.