Closed stevebeauge closed 7 months ago
I'm expecting to have quick-lint-js works out of the box with the standard types imported from the
dom
lib.
You're right that quick-lint-js's "global-groups: ["browser"]
(enabled by default) should declare a type called HeadersInit
.
Fixed in Git commit b8c59d3bec9159f93a350164c071b873273b883c. This will be released in version 3.1.0 soon.
Version 3.1.0 has shipped with the fix. (It actually shipped 4 days ago, but I forgot to mention it here...)
Using the default configuration in a browser only project, I get an error on this code:
I have no
import
on the HeadersInit, because it's imported through the"lib": ["es5", "dom", "es2015.collection", "es2015.promise", "es6", "es7", "es2019", "es2020"]
present in my tsconfig file (guessingdom
is the important one)Quick lint throws:
I can work around the error by creating a config file like this:
This makes quick lint happy.
I'm expecting to have quick-lint-js works out of the box with the standard types imported from the
dom
lib.Or did I misunderstand something?