Is there a way to determine which version of ESLint is currently running on Visual Studio 2019?

While attempting to run ESLint on Visual Studio 2019, everything goes smoothly until I add eslint-plugin-prettier to my package.json file. At that point, an error arises.

internal-error | (ESLint) Failed to load plugin prettier: Cannot find module 'eslint-plugin-prettier'

Interestingly, running ESLint from the command prompt poses no issues in finding the prettier plugin.

My next course of action involves delving into the ESLint source code to identify and resolve the "eslint-plugin-prettier" module location error. However, determining which version of ESLint Visual Studio is utilizing proves challenging. Even after uninstalling ESLint locally and globally, it seems to be operating on an internal copy.

Is there a definitive way to ascertain which ESLint version Visual Studio is employing?

Answer №1

I was also looking for this information and here is how I found it:

  1. Navigate to
    C:\Users\\{YourWindowsUsername}\AppData\Local\Microsoft\TypeScript\ESLint
    .
  2. Open the package.json file.
  3. You will find the version of ESLint that is installed, in my case it looks like "eslint": "4.19.1".

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Add owl carousel to your npm project in any way you see fit

After struggling for a while, I finally wanted to implement owl-carousel, but couldn't figure out how to connect it using npm and webpack. The official NPM website states: Add jQuery via the "webpack.ProvidePlugin" to your webpack configuration: ...

Steps for referencing a custom JavaScript file instead of the default one:

Currently, I am utilizing webpack and typescript in my single page application in combination with the oidc-client npm package. The structure of the oidc-client package that I am working with is as follows: oidc-client.d.ts oidc-client.js oidc-client.rs ...

NPM install does not automatically install dependencies within nested directories

Hi there, I'm facing a little issue with npm. When I create a new folder for my app and initiate it with npm init, everything goes smoothly. However, when I try to add gulp to my dependencies by running npm install --save-dev gulp, I notice that the n ...

Exploring the differences between named exports/imports and imports with absolute path

Currently, I am working on developing a component library named awesome-components as an npm module. This library will include buttons, inputs, dropdowns, and other components that users can easily install in their react applications. However, I am facing ...

How to utilize DefinePlugin in Webpack to pass NODE_ENV value

I am attempting to incorporate the NODE_ENV value into my code utilizing webpack through the use of DefinePlugin. I have reviewed a similar inquiry on Stack Overflow, but I am still encountering issues. Here is the configuration I am working with: In pac ...

The command "npm run watch" is hanging

Previously everything was running smoothly, but now I seem to be facing an issue with the npm run watch command. It gets stuck at this point: 10% building 1/1 modules 0 active webpack is watching the files… 12% building 19/27 modules 8 active ...View.vu ...

Silencing XML DOM warning messages in Node.js: A comprehensive guide

While utilizing a node module called xmldom, I encountered an issue where it consistently generated numerous warnings and errors such as the ones shown below: @#[line:484,col:1] [xmldom warning] attribute "hidden" missed quot(")!! @#[line:517,col:1 ...

Local modules vs production modules in npmWhen working with npm

We are developing two modules that are dependent on another module. The relationship is like A -› B and C -› B I have explored some possible solutions: Using npm link ../projectC from projects A, B Pros: Creates a symlink, so any changes made t ...

steps for incorporating a customized lodash build in a project

Customizing your lodash build to include only the functionality you need is simple thanks to its support for custom builds. The lodash website provides guidance on creating these custom builds using the handy lodash-cli. If you've created a custom bu ...

The search for the "vue-cli-service" npm package came up empty after installation

I have a vuejs package in my project. When I install it locally with the command "npm i 'path/to/app-vuejs --save-dev'" and then execute npm explore app-vuejs -- npm run serve everything works fine. The server starts and I can see the generated ...

Node.js (npm) is still unable to locate python despite setting %PYTHON% beforehand

Trying to get Node.js to work is proving to be more challenging than expected! Despite having two versions of Python on my computer, it seems that Node.js only works with the older version, 2.7. When I encountered an error, it prompted me to set the path ...

Tips for simulating localStorage in TypeScript unit testing

Is there a method to simulate localStorage using Jest? Despite trying various solutions from this post, none have proven effective in TypeScript as I continue encountering: "ReferenceError: localStorage is not defined" I attempted creating my ...

Combine Ractive with ractive-load using Rollup to optimize your code

When incorporating ractive and ractive-load into a rollup project, is it preferable to use npm or github for the installation process? To add each one, I currently utilize npm: npm install --save-dev ractivejs/ractive And npm install --save-dev ractive ...

The command 'electron-packager' is not identified as an internal or external command, feasible program, or batch file

I am currently in the process of packaging my electron application. Prior to proceeding further, I have already investigated why 'electron-packager' is not recognized as an internal or external command. To resolve this issue, I have attempted insta ...

What is the process for running an Angular 1.4 application on a system with Angular 6 installed?

After installing Angular 6 with CLI, I realized that my project was written in Angular 1.4. How do I go about running it? ...

Mastering advanced String templating using loops and control statements in Javascript

During runtime, I receive an array similar to the example below: var colors = ['red', 'green', 'blue']; I then need to create a JSON String that looks like this: { "color" : { "name" : "foo", "properties ...

I am having an issue with the npm install command. Each time I try running it, I keep receiving an

After posting the output, I find myself unable to comprehend anything. Can someone please guide me on what steps to take next? npm has issued a warning about an old lockfile and advises that supplemental metadata needs to be fetched from the registry due t ...

Detecting changes in the old version of Gulp 4 without applying any new CSS class

I encountered a strange issue with my Gulp 4 configuration. My programmer provided me with some code which I successfully modified by changing pixel values and adding new attributes to existing classes. The problem arose when I attempted to add a new cla ...

NPM seems to be neglecting the presence of globally installed packages

I seem to be encountering an issue with locally installing packages while globally installed ones are accessible. It appears that there is an error with the include path, but I am uncertain about the root cause. System : Mac OS X Node : 8.3.1 NPM ...

Securing the NPM version?

Currently, I am utilizing the .nvmrc file to set a specific Node version for my project. However, I am also interested in locking in my NPM version. Ensuring that all users running my project are on the same setup is important to me. Is there a way to ac ...