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

New rule for explicit null values #244

Open
Sweetchuck opened this issue Jun 6, 2023 · 1 comment
Open

New rule for explicit null values #244

Sweetchuck opened this issue Jun 6, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Sweetchuck
Copy link

There are three different ways to define a null value.

one:
two: ~
three: null

I think it would be useful to enforce the consistency.

@ota-meshi
Copy link
Owner

Thank you for posting this issue.
That rule of enforcing null notation sounds good to me.
However, I don't think we should use empty values, so I don't think the option to enforce an empty value is necessary.
By not enforcing empty values, we can avoid conflicts with rule that forbid empty values.
https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-mapping-value.html

@ota-meshi ota-meshi added enhancement New feature or request help wanted Extra attention is needed labels Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants