mthadley/eslint-plugin-sort-destructure-keys

TypeError: Cannot read property 'toString' of undefined

bfintal opened this issue · 2 comments

TypeError: Cannot read property 'toString' of undefined
node_modules/eslint-plugin-sort-destructure-keys/lib/rules/sort-destructure-keys.js:9:22

function getNodeName(node) {
    return typeof node.name === 'undefined'
        ? node.value.toString()
        : node.name;
}

@bfintal Do you have any more context for this particular error? The code being linted that threw this error, or maybe which parser was used?

If any further information is found, feel free to re-open. Otherwise, I'm going to close this. Thanks!