Skip to content

dynamic/configurable shareable config based on the settings #16428

Answered by mdjermanovic
100terres asked this question in Ideas
Discussion options

You must be logged in to vote

Hi @100terres!

I don't think this could be based on settings because settings are part of configurations, so it doesn't seem feasible for a configuration function to have access to the configuration it contributes to, which is not finalized yet at the point when the configuration function will be called.

As for other options, first, the current config system is frozen as we're working on the new config system, so any new features should be analyzed from the perspective of the new config system.

In the new config system, there's no extends. Shareable configs should be loaded and included in the config array:

// eslint.config.js
import foo from "eslint-config-foo";

export default [
    foo
];

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@100terres
Comment options

Answer selected by 100terres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants