ESLint: Disallow calling a function with only one argument in the code
All code that calls useMediaQuery(query) will be marked as error Your useMediaQuery2 may be still calling useMediaQuery , but it will call it with more than one arguments. So it is still valid