Add useRef() React Hook to lint rules

This commit is contained in:
Evan Hahn
2020-10-26 16:19:16 -05:00
committed by Evan Hahn
parent 8160b3b160
commit dd8a2435ea
2 changed files with 231 additions and 0 deletions

View File

@@ -135,6 +135,12 @@
"node_modules/react-error-overlay"
]
},
{
"name": "React-useRef",
"expression": "\\buseRef\\(",
"reason": "Potential XSS",
"excludedModules": ["node_modules/react/", "node_modules/react-dom"]
},
{
"name": "React-findDOMNode",
"expression": "\\bfindDOMNode\\(",