mattphillips/jest-expect-message

Extend eslint - jest/valid-expect - to allow 2nd optional argument for message.

alee8 opened this issue · 2 comments

alee8 commented

Feature Request

Description: Add/modify eslint rule - jest/valid-expect - to allow for 2nd optional message argument/

Possible solution:
While the 2nd optional argument for message works. Eslint's jest/valid-expect rule fires unless disabled above. Extend the current jest/valid-expect rule with additional value such as allow-message

0b10 commented

@alee8 did you find a way to just disable the linting for additional properties only? I couldn't find a way in either of the eslint/jest-plugin docs - I just set the rule to "off" for now.