This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Suppressions for react-no-dangerous-html require absolute path #537
Labels
Difficulty: Easy
Someone with little to no experience in TSLint should be able to send a pull request for this issue.
Good First Issue 🙌
Howdy, neighbor!
Status: Accepting PRs
Type: Bug
Milestone
Suppressions for react-no-dangerous-html only work when the file attribute contains the absolute path to the file.
I believe the problem is line 120 in
src/reactNoDangerousHtmlRule.ts
when the file attribute is compared for equality to aSourceFile.fileName
which is an absolute path.The text was updated successfully, but these errors were encountered: