After following the instructions in the typescript-eslint getting started documentation to set up a new project, I encountered an issue in my .eslintrc.js
file:
'module' is not defined.eslint(no-undef)
When I remove eslint:recommended
from the extends
section of the configuration, the error disappears. However, standard rules like debugger
or const iAmUnused = true
are not being enforced by ESLint, leading to a frustrating game of whack-a-mole.
I'm puzzled as to why my ESLint file is being recognized when it's at the root of my project with eslint:recommended
enabled. I don't want to add this file to my .eslintignore
since running the eslint
command indicates that the file is already automatically ignored, but it seems it's not 🤷♂️
Here is the content of my ESLintrc file:
Module exports and configurations...
And here is the structure of my TSConfig file:
{
Compiler options and configurations...
}