mozilla / eslint-plugin-no-unsanitized

Custom ESLint rule to disallows unsafe innerHTML, outerHTML, insertAdjacentHTML and alike
Mozilla Public License 2.0
222 stars 33 forks source link

Unsupported Callee for CallExpression no-unsanitized/method #163

Closed ChitraVijayamma closed 2 years ago

ChitraVijayamma commented 3 years ago

In the following test case

test.each input | expectedResult ${true} | ${true} ${false} | ${false} ( "Should return $expectedResult when passing in $input", ({ input, expectedResult }) => { const { result } = renderHook(() => useEsignAgreement()); act(() => result.current.setEsignAgreementValue(getSlotData(input)) ); expect(result.current.isEsignAgreementChecked).toBe(expectedResult); } );

the following lines

test.each input | expectedResult ${true} | ${true} ${false} | ${false} (

gets an error - Error in no-unsanitized: Unexpected Callee. Please report a minimal code snippet to the developers at https://github.com/mozilla/eslint-plugin-no-unsanitized/issues/new?

mozfreddyb commented 3 years ago

Thank you for the detailed report. It looks like this was recently fixed in #157. Did you try the latest version v3.1.5?

mozfreddyb commented 2 years ago

@ChitraVijayamma I am going to close this repor since we have not heard back from you. Please let us know if this is still an issue and we'll think of something though.