Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuration inheritance #5022

Open
shenglol opened this issue Oct 29, 2021 · 2 comments
Open

Add support for configuration inheritance #5022

shenglol opened this issue Oct 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@shenglol
Copy link
Contributor

Describe the solution you'd like
I wonder if we can provide a way to allow a configuration file to inherit from another one. Similar to TypeScript's tsconfig.json, this can be done by adding an extends property to specify the path to a base configuration file.

Example

// bicepconfig.base.json
{
  "analyzers": {
    // ...
  }
}
// bicepconfig.dev.json
{
  "extends": "./bicepconfg.base.json"
  "moduleAliases": {
    "ts": {
      "specs": {
        "subscription": "...",
        "resourceGroup": "test-rg" 
      }
    }
  }
}
// bicepconfig.prod.json
{
  "extends": "./bicepconfg.base.json"
  "moduleAliases": {
    "ts": {
      "specs": {
        "subscription": "...",
        "resourceGroup": "prod-rg" 
      }
    }
  }
}
@shenglol shenglol added the enhancement New feature or request label Oct 29, 2021
@ghost ghost added the Needs: Triage 🔍 label Oct 29, 2021
@alex-frankel alex-frankel added the discussion This is a discussion issue and not a change proposal. label Nov 3, 2021
@shenglol shenglol removed Needs: Triage 🔍 discussion This is a discussion issue and not a change proposal. labels Nov 10, 2021
@shenglol
Copy link
Contributor Author

Related to #5013.

@J0F3
Copy link

J0F3 commented Nov 10, 2022

I think this would be very useful. Especially for Linter configs as I have state out also here: #5013 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants