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
8.43.0
eslint-plugin-astro
0.27.1
{ "root": true, "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:astro/recommended" ], "parserOptions": { "ecmaVersion": 2022, "parser": "@typescript-eslint/parser" } }
<script> const foo = document.querySelector('foo')! console.log(foo) </script>
eslint . outputs
eslint .
4:14 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
2:14 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
npm i
npm run lint
The warning position is correct for .ts files. So I thought this is a bug in eslint-plugin-astro instead of typescript-eslint.
.ts
The text was updated successfully, but these errors were encountered:
Thanks for this report. I will fix it.
Sorry, something went wrong.
Thank you!
Successfully merging a pull request may close this issue.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.43.0
What version of
eslint-plugin-astro
are you using?0.27.1
What did you do?
Configuration
What did you expect to happen?
eslint .
outputsWhat actually happened?
eslint .
outputsLink to Minimal Reproducible Example
npm i
npm run lint
Additional comments
The warning position is correct for
.ts
files. So I thought this is a bug in eslint-plugin-astro instead of typescript-eslint.The text was updated successfully, but these errors were encountered: