Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 442 Bytes

no-dataset.md

File metadata and controls

21 lines (13 loc) · 442 Bytes

No Dataset

Rule Details

Due to camel-case transformations, using dataset is not easily greppable. Instead, use el.getAttribute('data-what-ever').

👎 Examples of incorrect code for this rule:

el.dataset.coolThing

👍 Examples of correct code for this rule:

el.getAttribute('data-cool-thing')

Version

4.3.2