Skip to content

kirkwaiblinger/eslint-config-helpers-missing-eslint-dep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eslint config-helpers missing eslint dep

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().

To observe type error

  1. npm i
  2. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published