This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new fc5dde15fe chore(build): enforce eslint rule banning antd imports 
outside of core Superset components (#31963)
fc5dde15fe is described below

commit fc5dde15fe7f8135effaa3757f146530e1267412
Author: Evan Rusackas <[email protected]>
AuthorDate: Thu Jan 23 16:12:04 2025 -0700

    chore(build): enforce eslint rule banning antd imports outside of core 
Superset components (#31963)
    
    Co-authored-by: Maxime Beauchemin <[email protected]>
---
 superset-frontend/.eslintrc.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/.eslintrc.js b/superset-frontend/.eslintrc.js
index d2ed09e69e..5f5acaa6d6 100644
--- a/superset-frontend/.eslintrc.js
+++ b/superset-frontend/.eslintrc.js
@@ -331,7 +331,7 @@ module.exports = {
     'no-prototype-builtins': 0,
     'no-restricted-properties': 0,
     'no-restricted-imports': [
-      'warn',
+      'error',
       {
         paths: [
           {
@@ -339,6 +339,11 @@ module.exports = {
             message:
               'Please import Ant components from the index of src/components',
           },
+          {
+            name: 'antd-v5',
+            message:
+              'Please import Ant v5 components from the index of 
src/components',
+          },
           {
             name: '@superset-ui/core',
             importNames: ['supersetTheme'],

Reply via email to