Skip to content
New issue

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

eslint で strict-boolean-expression の allowAny: false にひっかかるケースを調査 #49

Open
monman53 opened this issue Jul 17, 2024 · 0 comments
Labels
code quality improvement hard question Further information is requested

Comments

@monman53
Copy link
Owner

monman53 commented Jul 17, 2024

vue ファイルで宣言したファイルを別のファイルでロードするとany型として解釈されてしまう。

hoge.vue

<script lang="ts">
export const hoge = true
</script>

fuga.ts

import { hoge } from "./hoge.vue"
if (hoge) {
    console.log('hoge')
}
@monman53 monman53 added question Further information is requested code quality improvement hard labels Jul 17, 2024
@monman53 monman53 changed the title eslint で strict-boolean-expression の allowAny: fale にひっかかるケースを調査 eslint で strict-boolean-expression の allowAny: false にひっかかるケースを調査 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality improvement hard question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant