-
Notifications
You must be signed in to change notification settings - Fork 131
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
A value recipe with an empty array breaks the linter #425
Comments
Which version of the plugin you use ? Because we have an if statement just before this code : if (!node) {
return;
} |
I'm using the latest. The check there returns node = node.elements[node.elements.length - 1];
|
You are right. Do you know which rules throw the error ? |
When I was originally setting up the plugin, it felt like it was happening in about a third of the rules, but it was hard to tell because if any one of them threw everything would fail. The stack trace didn't help narrow it down either. After running into several, I just changed the one empty array value in our codebase to Taking a look at the source, I want to say it is any rule that requires |
I can reproduce it. Will solve it this evening maybe ;) Thanks |
If you lint this code:
certain rules will break the linter with this:
I believe the issue is the assumption that the array always has elements:
The text was updated successfully, but these errors were encountered: