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.

Add ability to extend file config

See original GitHub issue

I have project setup with Lerna and Yarn Workspaces:

packages
packages/a/package.json
packages/a/.browserslistrc
packages/a/...
packages/b/package.json
packages/b/.browserslistrc
packages/b/...
package.json
.browserslistrc

In the root .browserslistrc file I have browsers list and in each package .browserslistrc file I would like to do

extends ../../.browserslistrc

but I can’t. I can only extend from package like here:

extends @org/browserslist-config-mycompany

However, I don’t want to create separate package to only define list of browsers

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
timreichencommented, Jun 10, 2020

I opened an issue here to add json js and ts support for config files. That would solve the extension problem automatically as described in this article.

1reaction
lukejagodzinskicommented, Aug 29, 2019

Hmm security concerns? Isn’t it just something similar to other tools that allow extending config files?

Yep the one in packages/a extends the one in the root

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add ability to extend from other settings files #15909 - GitHub
Inspired by TSLint's ability to extend configuration files, it would be nice if .vscode/settings.json could behave the same way.
Read more >
Extending Configuration Support - Quarkus
With a Custom ConfigSource it is possible to read additional configuration values and add them to the Config instance in a defined ordinal....
Read more >
Extend an element in App.config - Stack Overflow
I would rather use the configuration in the app.config file to provide default values and implement some user configuration myself. Is such case,...
Read more >
Configuration Files - ESLint - Pluggable JavaScript Linter
A configuration file, once extended, can inherit all the traits of another configuration file (including rules, plugins, and language options) and modify all ......
Read more >
Extend a Linux file system after resizing a volume
After you increase the size of an EBS volume, you must use file system–specific commands to extend the file system to the new,...
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