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).
Test failure on Windows 11:
test:deprecatedcrashes due to removedwmicThe
rules.test.js"support omitting all deprecated rules" test fails on Windows 11 22H2+ becauseeslint-find-rules@4.2.0depends onwindow-size@0.3.0, which shells out towmicto detect terminal dimensions.wmicwas 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_DEPRECATEDenv 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(updatewindow-sizeto1.xor drop it).