Giter VIP home page Giter VIP logo

Comments (10)

egamma avatar egamma commented on August 16, 2024

@OshotOkill

You can install eslint globally using 'npm install -g eslint' and vscode-eslint will pick it up.

Also eslint supports a cascading lookup so you only have to define a .eslintrc.json file once in a parent folder and it will be picked up.

Is this sufficient for you?

from vscode-eslint.

OshotOkill avatar OshotOkill commented on August 16, 2024

@egamma Thanks.

from vscode-eslint.

craxal avatar craxal commented on August 16, 2024

I've had some trouble getting the extension to work with a globally installed eslint. Restarting VS Code a few times seemed to do the trick.

I agree that having to install the NPM package yourself seems a little weak sauce to me, even if it is installed globally. It would be nice if I could install the extension and just see things start working.

from vscode-eslint.

paror avatar paror commented on August 16, 2024

Why Linting Javascript Out-of-the-box when you install ESlint extension is not possible? Thats not convenient for new users and for users who can't use npm for security reason.

from vscode-eslint.

evanwarner avatar evanwarner commented on August 16, 2024

Agreed that it seems like an unnecessary requirement to have users also install eslint globally on their own. I've never had an editor extension that didn't install itself with all dependencies included.

from vscode-eslint.

nemchik avatar nemchik commented on August 16, 2024

I would much rather ESLint be bundled with the extension than having to install it globally. I believe the VSCode TSLint extension already does this. https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

I am still not a fan of this since it forces the ESLint extension to do a catchup game with the eslint npm module. I would rather add an action that installs it.

from vscode-eslint.

jonkri avatar jonkri commented on August 16, 2024

I'm teaching web design and JavaScript. From my perspective, it would be great if students starting out with JavaScript could get the hints from ESLint without having to install and invoke NodeJS.

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

A PR to contribute an action / command is still very welcome.

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

I am closing the issue. Instead of adding this to the eslint extension a better approach would be to have an extension that prereqs this one and guides the user through a possible ESLint setup. This leave this extension somehow light weight and clean.

from vscode-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.