Never seen this before. I added quite a bit of ESLint rules of other repositories, everything works fine, a lot of good comments. But now I get this weird array destructure error on using a type with useState:
The type in question:
export type Sheet = {
bestTotalCostPerOperation: number,
worstTotalCostPerOperation: number,
}
The small bit of code for state:
const [ sheet, setSheet ] = useState<Sheet>();
Changing it's type fixes the issue, but what could possibly cause this?