发布

  • fix(linter): add missing inputs to eslint executor target defaults (#35236)

    frostbyte_neo 发布于 2026-04-10 04:11:15 +00:00

    Current Behavior

    After the custom eslint hasher was removed in d64aeef5df, the
    @nx/eslint:lint executor target defaults are missing ^default and
    {workspaceRoot}/tools/eslint-rules/**/* from their inputs. The old
    custom hasher was compensating for this by manually handling dependency
    hashing, but now that it's gone, the inputs need to be self-sufficient.

    This means:

    • Changes in dependencies don't invalidate the lint cache (problematic
      for type-aware rules that inspect imported types)
    • Changes to custom workspace eslint rules don't trigger re-linting

    The inferred/plugin path (plugin.ts) already includes these inputs
    correctly.

    Expected Behavior

    The executor target defaults should include ^default (dependency file
    changes) and {workspaceRoot}/tools/eslint-rules/**/* (custom workspace
    rules) to match what the eslint plugin already sets for inferred
    targets.

    Related Issue(s)

    Follows up on d64aeef5df (remove custom eslint hasher).


    Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
    Co-authored-by: FrozenPandaz FrozenPandaz@users.noreply.github.com

    下载附件