Fixing ESLint Execution is Not Approved or Denied in Visual Studio Code

Leave a comment

In Visual Studio Code, when using the eslint extension, you may get the error below. In the bottom right of the screen, you have a red circle next to ESLINT:

Hovering over the red circle, we see the message “ESLint execution is not approved or denied yet. Click to open approval dialog”:

There are a few reasons why this may occur. The first thing to do is to initialize ESLINT for the project. For me, I had to do it in the following directory with the command below:

./node_modules/.bin/eslint --init

Once you do that, you should see the ESLINT server running:

Now click on the red circle, and you should see the pop-up “The ESLint extension will use ‘node_modules/eslint’ for validation” Click Allow Everywhere:

We now see checkboxes next to ESLint:

And if we open a file, we see ESLint is now working on the file, displaying errors:

 

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

Leave a Reply

Your email address will not be published. Required fields are marked *