Replies: 4 comments
-
+1 This is really PITA to list all globals |
Beta Was this translation helpful? Give feedback.
-
Yes! We need this! |
Beta Was this translation helpful? Give feedback.
-
SvelteKit projects has app.d.ts , my vscode always show them in red. |
Beta Was this translation helpful? Give feedback.
-
it would be great to have it supported! As a workaround, here's a handy "overrides": [
{
"include": ["*.spec.ts"],
"javascript": {
"globals": [
"afterEach",
"afterAll",
"beforeEach",
"beforeAll",
"describe",
"expect",
"it",
"test",
"jest",
],
},
},
], |
Beta Was this translation helpful? Give feedback.
-
It seems like Biome doesn't resolve tsconfig includes and thus pick up on globals defined in custom
d.ts
files and types supplied by the tsconfigtypes
compiler option.This leads to stuffing
javascript.globals
with all sorts of things that probably shouldn't be marked carte-blanche global.This is a point of divergence that I think is actually a problem because it can lead to sneaky bugs when the global variable resolution algorithm differs significantly from TS's own.
Beta Was this translation helpful? Give feedback.
All reactions