const eslintConfig = require('./.eslintrc');

// Add the config for preventing deprecated component-library imports
eslintConfig.plugins = [...eslintConfig.plugins, 'deprecate'];
eslintConfig.rules = {
  ...eslintConfig.rules,
  'deprecate/import': [
    'error',
    {
      name:
        '@department-of-veterans-affairs/component-library/CollapsiblePanel',
      use: '<va-accordion>',
    },
  ],
};

module.exports = eslintConfig;

@@ -389,16 +389,128 @@
 %0A    %7D,%0A
+    %7B%0A      name: '@department-of-veterans-affairs/component-library/AlertBox',%0A      use: '%3Cva-alert%3E',%0A    %7D,%0A
   %5D,%0A%7D;%0A

Add ESLint rule to deprecate AlertBox imports (#17401)