bbovenzi commented on code in PR #76931:
URL: https://github.com/apache/airflow/pull/76931#discussion_r4604382630


##########
airflow-core/src/airflow/ui/rules/typescript.js:
##########
@@ -55,13 +55,11 @@ export const typescriptRules = /** @type {const} @satisfies 
{FlatConfig.Config}
       ecmaVersion: "latest",
 
       /**
-       * Get `tsconfig.json` from the root directory.
+       * oxlint runs the type-aware rules, so ESLint no longer loads a 
tsconfig. Without one, scope
+       * analysis needs the app's `lib` to know globals such as `globalThis`; 
otherwise
+       * `unicorn/consistent-function-scoping` flags functions that only use 
them.
        */
-      project: [
-        `${import.meta.dirname}/../tsconfig.app.json`,
-        `${import.meta.dirname}/../tsconfig.dev.json`,
-        `${import.meta.dirname}/../tsconfig.node.json`,
-      ],
+      lib: ["es2022", "dom", "dom.iterable"],

Review Comment:
   Will remove in the next PR of this stack



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to