eclint only indents comments in a JS file, everything else is kept as it is.
How to reproduce
Example JS file:
/*
* Some comment on the module.
*/
var driver = (function() {
/*
* This is some property.
*/
var property = null;
/*
* Get the property.
*/
var getProperty = function() {
return property;
};
return {
getProperty: getProperty
};
})();
/*
* Some comment on the module.
*/
var driver = (function() {
/*
* This is some property.
*/
var property = null;
/*
* Get the property.
*/
var getProperty = function() {
return property;
};
return {
getProperty: getProperty
};
})();
As we see, the only thing that's changed are the comments inside of the closure (which are not properly indented, either). The property and the method are not changed. I'd expect the file to be indented using four spaces.
Description
eclint
only indents comments in a JS file, everything else is kept as it is.How to reproduce
Example JS file:
.editorconfig
in use:The result of this command is:
As we see, the only thing that's changed are the comments inside of the closure (which are not properly indented, either). The property and the method are not changed. I'd expect the file to be indented using four spaces.
Version