bito-code-review[bot] commented on code in PR #37897:
URL: https://github.com/apache/superset/pull/37897#discussion_r2794334846


##########
superset-frontend/.eslintrc.minimal.js:
##########
@@ -17,6 +17,9 @@
  * under the License.
  */
 
+// Register TypeScript require hook so ESLint can load .ts plugin files
+require('tsx/cjs');
+
 /**

Review Comment:
   <div>
   
   
   <div id="suggestion">
   <div id="issue"><b>TypeScript ESLint forbids require() style 
imports</b></div>
   <div id="fix">
   
   The `require('tsx/cjs')` call violates the 
`@typescript-eslint/no-require-imports` rule. Replace with ES6 `import` syntax 
to comply with TypeScript linting standards.
   </div>
   
   
   <details>
   <summary>
   <b>Code suggestion</b>
   </summary>
   <blockquote>Check the AI-generated fix before applying</blockquote>
   <div id="code">
   
   
   ````suggestion
   // Register TypeScript require hook so ESLint can load .ts plugin files
   import 'tsx/cjs';
    
   /**
   ````
   
   </div>
   </details>
   
   
   
   </div>
   
   
   
   
   <small><i>Code Review Run #70fb97</i></small>
   </div>
   
   ---
   Should Bito avoid suggestions like this for future reviews? (<a 
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
   - [ ] Yes, avoid them



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to