babel / babel-eslint

:tokyo_tower: A wrapper for Babel's parser used for ESLint (renamed to @babel/eslint-parser)
https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser
MIT License
2.96k stars 208 forks source link

shorthand deconstructing AST problem #809

Closed fisker closed 4 years ago

fisker commented 4 years ago

Issue found in https://github.com/sindresorhus/eslint-plugin-unicorn/issues/443 , and I located the problem is because Identifier node is not a reference of identifier.parent.key

Not sure what cause the problem, eslint ? babel ? or babel-eslint?

temporary workaround https://github.com/sindresorhus/eslint-plugin-unicorn/pull/444

kaicataldo commented 4 years ago

Thank you for the PR. Now that @babel/eslint-parser has been released, we are making this repository read-only. If this is a change you would still like to advocate for, please reopen this in the babel/babel monorepo.