import React,{ useState} from 'react';
const App = () => {
if(true){var [X, setX] = useState(0);}
console.log(X);
return (
<div>
{X}
</div>
);
}
{
"extends": [
// your other plugins...
"tslint-react-hooks"
],
"rules": {
// your other rules...
"react-hooks-nesting": "error"
}
}