We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unicorn/prefer-top-level-await
Crash output:
ESLint: 8.26.0 TypeError: Cannot read properties of null (reading 'type') Occurred while linting foo.js:3 Rule: "unicorn/prefer-top-level-await" at CallExpression:not(:function *)[callee.type="Identifier"] (node_modules/eslint-plugin-unicorn/rules/prefer-top-level-await.js:98:13) at node_modules/eslint-plugin-unicorn/rules/utils/rule.js:39:18
Rule: unicorn/prefer-top-level-await
eslint-plugin-unicorn v44.0.2
Code sample that triggered crash:
for (const statement of statements) { good.push( `${statement('@book')}`, ); }
The text was updated successfully, but these errors were encountered:
Can't believe forgot that init of Variable[kind="const"] can be null.
Variable[kind="const"]
eslint-plugin-unicorn/rules/prefer-top-level-await.js
Line 92 in 59d25a2
Sorry, something went wrong.
prefer-top-level-await
for..of
fisker
Successfully merging a pull request may close this issue.
Crash output:
Rule:
unicorn/prefer-top-level-await
eslint-plugin-unicorn v44.0.2
Code sample that triggered crash:
The text was updated successfully, but these errors were encountered: