Skip to content

Draft: Add lint rule disallowing GlListbox import

Mark Florian requested to merge 382423-add-lint-rule-blocking-gl-listbox into master

What does this MR do and why?

This adds a temporary lint rule against using the GlListbox import alias for GlCollapsibleListbox.

Addresses #382423 (closed), part of &9091 (closed).

Draft

This is draft because:

  • It depends on !105262 (merged).
  • Pajamas Migration day is on 2022-12-01, and will likely result in several MRs which add GlListbox imports. We should wait until the week after to merge this to avoid master:broken.

Screenshots or screen recordings

n/a

How to set up and validate locally

  1. Write import { GlListbox } from '@gitlab/ui'
  2. Observe lint error

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #382423 (closed)

Edited by Mark Florian

Merge request reports