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
I'd like to ignore zero values from the LengthVariable linter.
This is my config:
LengthVariable: enabled: true allowed_lengths: [0]
But I still get this:
Length literals like 0 should only be used in variable declarations;...
Length literals like
should only be used in variable declarations;...
How can I get the effect I require?
The text was updated successfully, but these errors were encountered:
It looks like this might be a limitation in how LengthVariable works. We'd be happy to look at a PR fixing this!
LengthVariable
Sorry, something went wrong.
Easy fix for this would be allowed_lengths: ["0"]
allowed_lengths: ["0"]
When you put smth like allowed_lengths: [0, 20px], config['allowed_lengths'] outputs [0, "20px"]. I have no idea how to fix it in code though.
allowed_lengths: [0, 20px]
config['allowed_lengths']
[0, "20px"]
No branches or pull requests
I'd like to ignore zero values from the LengthVariable linter.
This is my config:
But I still get this:
Length literals like
0should only be used in variable declarations;...
How can I get the effect I require?
The text was updated successfully, but these errors were encountered: