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.

Multiple scoped shared configs require the prefix

See original GitHub issue

ESLint v0.21.2 Relevant code: (#config.js#84)

Expected:

Multiple, scoped, shared configs in a single module should be extendable from a .eslintrc without the eslint-config- prefix (as non-scoped configs are).

Assuming a module called eslint-config-test with a default config index.js and a sub-config modern.js then all of these should work:

{ "extends": "@scope/eslint-config-test" }
{ "extends": "@scope/eslint-config-test/modern" }
{ "extends": "@scope/test" }
{ "extends": "@scope/test/modern" }

Actual:

The 4th example, extending a sub-config, will fail with the error Cannot find module '@scope/test/eslint-config-modern' unless the root module name includes the eslint-config- prefix.

These will work:

{ "extends": "@scope/test" }
{ "extends": "@scope/eslint-config-test/modern" }

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gcochardcommented, May 22, 2015

I’ll take this.

0reactions
MethodGrabcommented, May 22, 2015

Thanks for the confirmation and quick work on a fix! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shareable Configs - 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 >
Understanding Scope Of Prefixes in L3Out External EPG in ACI -
Shared Route Control Subnet: This means that prefixes I learn from my routing peer (the external router), will be advertised to that other...
Read more >
Mapping configuration to objects - Quarkus
With config mappings it is possible to group multiple configuration properties in a single interface that share the same prefix.
Read more >
JAXB Namespace-prefix configuration for multiple packages?
Yes it is possible to have multiple @XmlRootElement per package. There can only be one per class and the combination of name and...
Read more >
config | npm Docs
For other registries you will need to scope it like "//other-registry.tld/:_auth" ... are linked to {prefix}/bin; man pages are linked to {prefix}/share/man ...
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