I recently started using the ESLint extension in my VSCode editor for my React project. After creating the starter files, I ran the following command in my terminal:
eslint --init
This allowed me to choose the AirBnb style guide with React, which generated a .eslintrc.js file in my project's root folder.
While ESLint is installed globally, I also reinstalled it locally in my root folder by running:
npm install eslint --save-dev
Upon opening my VSCode editor, I noticed that the extension was not identifying any problems in my code, even though I knew there were some. Could this be related to the .tsx extensions? This is my first time using TypeScript. Do I need any additional packages to resolve this? How can I fix this issue?
I should mention that I encountered a similar problem in a previous project without TypeScript—only .js and .jsx files. In that case, the ESLint extension was not working initially, but started functioning and displaying warnings while I was coding.