@masknet/eslint-plugin
Version:
eslint plugin for masknet
30 lines (18 loc) • 465 B
Markdown
<!-- begin title -->
# `@masknet/jsx/no-set-html`
Disallow use `dangerouslySetInnerHTML` jsx attribute
<!-- end title -->
## Rule Details
## Options
### :x: Incorrect
```jsx
<a dangerouslySetInnerHTML={{ __html: "...." }} />
```
## Attributes
<!-- begin attributes -->
- [x] :white_check_mark: Recommended
- [ ] :wrench: Fixable
- [ ] :bulb: Suggestions
- [ ] :gear: Configurable
- [ ] :thought_balloon: Requires type information
<!-- end attributes -->