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.

[feature request] Add support for .eslintrc directory

See original GitHub issue

The version of ESLint you are using. latest

The problem you want to solve. I want to be able to store an eslint config as its own standalone git repository, so it can be added to other repositories with git submodule add and managed independently. Git repos must be folders.

Your take on the correct solution to problem. .eslintrc check for a directory ./ should also detect a .eslint/ or .eslintrc/ directory, and then use the default .eslintrc* logic to select a config .eslintrc* in that folder and apply it with respect to the parent folder ./.

Are you willing to submit a pull request to implement this change? Yes.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
aladdin-addcommented, Aug 18, 2020

emm… I’ve misread the issue somehow, please disregard my comment. 🤣

1reaction
kaicataldocommented, Aug 18, 2020

I don’t think core should support this, as there are a few ways to achieve this already:

  1. Putting a standard config file in the project root that extends the shared config in the Git submodule. This is how shared configs installed via npm also work.
  2. Using the –config CLI flag.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Feature request : Add support for .eslintrc config files with extensions (.js, .json, .yaml/.yml) #808 · Comments · Issue Type · Issue Description....
Read more >
Configuration Files - ESLint - Pluggable JavaScript Linter
ESLint supports adding shared settings into configuration files. Plugins use settings to specify the information that should be shared across all of its ......
Read more >
Basic Features: ESLint - Next.js
ESLint · ESLint Config · ESLint Plugin · Linting Custom Directories and Files · Caching · Disabling Rules · Usage With Other Tools...
Read more >
eslint - npm
After that, you can run ESLint on any file or directory like this: ... to an existing rule to support a newly-added language...
Read more >
Migrate from TSLint to ESLint - Visual Studio Code
ESLint : Run · Install the ESLint extension. · Create a task via the Tasks: Configure Task command and select npm: lint. ·...
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