Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 467 Bytes

no-d-none.md

File metadata and controls

25 lines (15 loc) · 467 Bytes

Disallow usage the d-none CSS class (github/no-d-none)

💼 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