I've written the following code:
d3.csv('data/co2_uitstoot.csv', function(error, data) {
if (error) throw error;
// Rest of code
When I try to validate this code using JavascriptLint, I get the following warning:
lint warning: block statement without curly braces
Is this truly illegal according to the official Javascript guidelines? I'm asking this because I see this a lot in Javascript code, also in professional plugins and libraries.