feat: 🎸 add no-html-snapshots rule
This MR adds the no-html-snapshots rule, to lint against matching of
snapshots against the output of html()
.
It's set to error type problem
since we don't want code like this to error out when we encounter it, but leave a warning that this line might be a potential troublemaker.
Example
// :(
expect(wrapper.html()).toMatchSnapshot()
// :)
expect(wrapper.element).toMatchSnapshot()
Edited by Jannik Lehmann