-
-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lint/correctness/noUndeclaredVariables should ignore TsGlobalDeclaration #2932
Comments
Please update the playground link, it seems not illustrate the current issue. |
It seems the playground server was experiencing an issue, but it appears to be accessible now. |
I see the following code in the playground: export default {
flowProps: 'a'
} satisfies FlowConfig I don't understand how this code is related to the current issue. |
check the main.ts declare global {
interface FlowConfig {
flowProps: string
}
} In this case, where I have defined a global type instead of a global variable, the current implementation of Biome does not support this. The key difference from the previous issue (#1651) is that I am now working with a global type definition, rather than a global variable. |
I can't replicate the issue in the playground. |
Try this one plz |
@ash0080 sorry, the playground doesn't show the error. Please create a repository at this point. |
https://biomejs.dev/playground/?lineWidth=120&indentStyle=space"eStyle=single&semicolons=as-needed&attributePosition=multiline&bracketSameLine=true&lintRules=all&files.data.tsx=ZABlAGMAbABhAHIAZQAgAGcAbABvAGIAYQBsACAAewAKACAAIAAgACAAaQBuAHQAZQByAGYAYQBjAGUAIABGAGwAbwB3AEMAbwBuAGYAaQBnACAAewAKACAAIAAgACAAIAAgACAAIABmAGwAbwB3AFAAcgBvAHAAcwA6ACAAcwB0AHIAaQBuAGcACgAgACAAIAAgAH0ACgB9AA%3D%3D
Regarding similar situations, should the same requirement of "no undeclared variables" also be satisfied?
Originally posted by @ash0080 in #1651 (comment)
The text was updated successfully, but these errors were encountered: