question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How should ESLint dependencies be handled?

See original GitHub issue

I’m currently working on adding ESLint support thanks to https://github.com/Quramy/typescript-eslint-language-service.

However, I don’t have much experience using ESLint and it’s expected workflow.

Should users be expected to have ESLint (+ it’s dependencies) installed in the node_modules folder of the project they are working on?

Or are they expecting ESLint (+ dependencies) to be installed already when they install Wild Web Developer?

The issue with the second workflow is that ESLint looks for it’s dependencies relative to the location of it’s configuration file .eslintrc (which are configured on a per-project-basis), so the user would have to specify the path to the Wild Web Developer bundle location in this configuration. This would also probably cause some issues with Eclipse running in Flatpak.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Christopher-Chianellicommented, Nov 26, 2019

Typically (in my experience), eslint is installed in node_modules for each project that use it. +1 to the first approach (users be expected to have ESLint (+ it’s dependencies) installed in the node_modules folder of the project they are working on).

1reaction
jabbycommented, Nov 26, 2019

@AObuchow same experience for me. All projects with eslint have the eslint in node_modules.

About extention. If we don’t have any projetcs in workspace with corresponding dependency (eslint here and angular for #276) maybe we should not load the plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Guide to ESLint | Laurie on Tech
For example, ESLint has a rule called import/no-extraneous-dependencies . The goal of this rule is to catch situations in which you've imported ...
Read more >
Why and how to use ESLint in your project - IBM Developer
This articles covers why you should use ESLint for linting Node.js packages ... It's important to check how well managed your direct dependencies...
Read more >
how bundler handle the dependencies and why put eslint ...
devDependencies , I am looking through some source code these days, most of monorepo project will have a eslint-config to do lint.
Read more >
Working with Plugins - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
eslint-plugin-dependencies - npm
If you're using a custom parser, the rule will use that to parse the dependencies. The rule takes a skip array of strings,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found