Comments (10)
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.
@egamma Thanks.
from vscode-eslint.
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.
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.
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.
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.
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.
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.
A PR to contribute an action / command is still very welcome.
from vscode-eslint.
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)
- Feature request: show notification when ESLint fails to load HOT 5
- Use a new client on restart server if the previous start has failed HOT 2
- Feature request: bring back enable/disable eslint command HOT 1
- Extension can't find typescript-eslint parser with yarn's pnpm linker installation layout HOT 3
- ESLint Not Showing Inline Error Hints for .wxml Files in VS Code HOT 1
- Feature request: Provide a way to control files fixed during onCodeActionsSave (e.g., ignorePatterns) HOT 5
- Errors differ from command line for import ordering HOT 1
- Eslint does not reload dependencies after installing a new package ('X' should be listed in the project's dependencies) HOT 1
- Eslint server could not found config file. HOT 20
- "Unknown options: extensions" error using flat config HOT 31
- 'Incorrect Type. Expected "object"' Error When Specifying an ESLint Rule String Option HOT 1
- imports do not work in flat config yarn pnp HOT 5
- ESLint config not found for flat config HOT 6
- [feat] `eslint.lintTask.command: string`
- Parsing error: __classPrivateFieldGet(...).at is not a function | After upgrading to newest version of Typescript & Eslint HOT 3
- Update default options for `eslint.probe` to include json, jsonc HOT 1
- Local config seems to be ignored :shrug: HOT 3
- eslint is not loading suddenly HOT 1
- Sorting is bugged HOT 2
- Full support for esm flat configs HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-eslint.