Bug with Eslint plugin using node 20 .toSorted #6579
-
Checklist
Describe the issueWhat is happening? What did you expect to happen instead? Steps to reproduce the behavior:
Error: @zwave-js/config:lint:zwave: Oops! Something went wrong! :(
@zwave-js/config:lint:zwave:
@zwave-js/config:lint:zwave: ESLint: 8.48.0
@zwave-js/config:lint:zwave:
@zwave-js/config:lint:zwave: TypeError: propsWithComments.toSorted is not a function
@zwave-js/config:lint:zwave: Occurred while linting /workspaces/node-zwave-js/packages/config/config/devices/0x027a/zen37.json:64
@zwave-js/config:lint:zwave: Rule: "@zwave-js/consistent-device-config-property-order"
@zwave-js/config:lint:zwave: at JSONProperty[key.value='paramInformation'] > JSONArrayExpression > JSONObjectExpression (/workspaces/node-zwave-js/packages/eslint-plugin/build/rules/consistent-device-config-property-order.js:58:60)
@zwave-js/config:lint:zwave: at ruleErrorHandler (/workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/linter.js:1050:28)
@zwave-js/config:lint:zwave: at /workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/safe-emitter.js:45:58
@zwave-js/config:lint:zwave: at Array.forEach (<anonymous>)
@zwave-js/config:lint:zwave: at Object.emit (/workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
@zwave-js/config:lint:zwave: at NodeEventGenerator.applySelector (/workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
@zwave-js/config:lint:zwave: at NodeEventGenerator.applySelectors (/workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
@zwave-js/config:lint:zwave: at NodeEventGenerator.enterNode (/workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
@zwave-js/config:lint:zwave: at CodePathAnalyzer.enterNode (/workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
@zwave-js/config:lint:zwave: at /workspaces/node-zwave-js/node_modules/.store/eslint-npm-8.48.0-0dd1c36629/node_modules/eslint/lib/linter/linter.js:1085:32
@zwave-js/config:lint:zwave: ERROR: command finished with error: command (/workspaces/node-zwave-js/packages/config) yarn run lint:zwave exited (1)
command (/workspaces/node-zwave-js/packages/config) yarn run lint:zwave exited (1) Software versionsDriver (node-zwave-js): Master branch Device informationN/A Checklist
Upload LogfileN/a Dev container bug |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved by #6580, thank you! |
Beta Was this translation helpful? Give feedback.
Solved by #6580, thank you!