@locker/eslint-plugin-locker
Version:
Lightning Web Security ESLint rules
16 lines (12 loc) • 361 B
Markdown
The following `DataTransfer` properties are prohibited when Lightning Web Security is enabled:
- mozCursor
- mozSourceNode
- mozUserCancelled
## Rule Details
Example of **incorrect** code:
```js
window.ondrag=function(evt) {
const text = evt.dataTransfer.mozSourceNode;
text.textContent = text.textContent.replace(/☀️/, '🌑');
}
```