Multiple scoped shared configs require the prefix
See original GitHub issueESLint 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:
- Created 8 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take this.
Thanks for the confirmation and quick work on a fix! 👍