eslint-plugin-total-functions
eslint-plugin-total-functions copied to clipboard
TSX test cases
... and any relaxation of the rules to allow safe usages required in response
This should be considered "safe" for example:
const arr = ["a"]; const foo = <div className={arr[0]}>foo</div>;
That example is no longer flagged as invalid (thanks to https://github.com/danielnixon/eslint-plugin-total-functions/commit/6d4c3e58459062c8641772026412e66c5bf9be3e) but we still want the TSX test case(s).