Update: space-unary-ops uses astUtils.canTokensBeAdjacent (fixes #9907) #9906
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Please show your full configuration:
(See demo link below)
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
Every UnaryExpression, NewExpression, YieldExpression, and AwaitExpression should be flagged as invalid. It is possible to remove the spaces between the unary word operator and the next token.
What actually happened? Please include the actual, raw output from ESLint.
No linting errors.
What changes did you make? (Give an overview)
Changed special-case ObjectExpression check (which seemed to be used as a check for whether the next token was
Is there anything you'd like reviewers to focus on?
The text was updated successfully, but these errors were encountered: