Skip to content

Add a flag to disable computing full configurations #746

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

🚀 Feature Request

Some configurations, particularly those for monorepos, don't need to compute the full/extended config for a conversion. Their configurations might exist solely to modify a few choice rules from an extended shared config.

{
  "extends": "@org/eslint-config",
  "rules": {
    "specific-rule": "error"
  }
}

Existing Behavior

There's no way to change the behavior of rule conversions to ignore extended configurations.

Change Proposal

How about a --standalone flag / standalone Node API (once #732 is resolved) to disable fetching and computing the --print-config and extends rules for lint configurations? Is there a better name for the flag?

In the above example, instead of factoring in @org/eslint-config, we'd only look at rules -> specific-rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: lint configurationsImproving settings placed into lint configurations outside of rules.type: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions