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

Ignore null values from template checks #432

Open
zaalbarxx opened this issue Sep 27, 2023 · 0 comments
Open

Ignore null values from template checks #432

zaalbarxx opened this issue Sep 27, 2023 · 0 comments

Comments

@zaalbarxx
Copy link

What rule do you want to change?
no-raw-text

Does this change cause the rule to produce more or fewer warnings?
No.

How will the change be implemented? (New option, new default behavior, etc.)?
New behavior, I think

Please provide some example code that this change will affect:
https://stackblitz.com/edit/vite-vue2-hlw8rl?file=.eslintrc.js,src%2Fviews%2FAbout.vue,src%2Fviews%2FHome.vue

What does the rule currently do for this code?
The rule does not ignore null value in template triggering error

What will the rule do after it's changed?
The rule will omit the null values in the templates

Additional context
This has previously worked correctly in 0.11.1 version, in 1.0.0 it was already broken. I think it is correct to return null value inside the template, especially when dealing with conditions. I've checked and undefined is being ignored, I think same should also apply for null ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant