Closed sharkykh closed 6 years ago
This PR updates the no-attr rule to differentiate between getting an attribute and setting its value:
no-attr
// Error: Prefer getAttribute to $.attr $('node').attr('name'); // Error: Prefer setAttribute to $.attr $('node').attr('name', 'random');
Updated the tests to reflect that as well.
Fixes #15
This PR updates the
no-attr
rule to differentiate between getting an attribute and setting its value:Updated the tests to reflect that as well.
Fixes #15