We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a038ca commit 7134b74Copy full SHA for 7134b74
lib/options/rule-indent.js
@@ -21,7 +21,6 @@ module.exports = {
21
* @param {node} node
22
*/
23
process: function(nodeType, node, level) {
24
- // increasing indent level
25
if (nodeType === 'block') {
26
if (node[0][0] !== 's') {
27
node.unshift(['s', '']);
@@ -38,12 +37,8 @@ module.exports = {
38
37
tail = node.splice(i);
39
tail.unshift(space);
40
Array.prototype.push.apply(node, tail);
+ i++;
41
}
42
-
43
- // replacing last line space by value:
44
- // '' => '\n\t'
45
- // '\n ' => '\n\t'
46
- // '\n \n ' => '\n \n\t'
47
space[1] = space[1].replace(/(\n)?([\t ]+)?$/, value);
48
49
};
0 commit comments