Skip to content

Test failure on Windows 11: eslint-find-rules crashes due to removed wmic (window-size@0.3.0) #367

Description

@jaseonline

Test failure on Windows 11: test:deprecated crashes due to removed wmic

The rules.test.js "support omitting all deprecated rules" test fails on Windows 11 22H2+ because eslint-find-rules@4.2.0 depends on window-size@0.3.0, which shells out to wmic to detect terminal dimensions. wmic was removed in Windows 11 22H2.

The crash happens before any rule analysis runs, so the test exits 1 regardless of the ESLINT_CONFIG_PRETTIER_NO_DEPRECATED env var value.

Upstream issue filed on eslint-find-rules: sarbbottam/eslint-find-rules#362

Workaround

No local workaround short of running tests on Linux/macOS or an older Windows version. The fix needs to land in eslint-find-rules (update window-size to 1.x or drop it).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions