Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 470 Bytes

File metadata and controls

27 lines (16 loc) · 470 Bytes

github/no-d-none

📝 Disallow usage the d-none CSS class.

💼 This rule is enabled in the 🔐 internal config.

Rule Details

Ideally JavaScript behaviors should not rely on Primer CSS when the hidden property can be used.

👎 Examples of incorrect code for this rule:

div.classList.add('d-none')

👍 Examples of correct code for this rule:

div.hidden = false

Version

4.3.2