+ aaa + bbb + ccc ++ + ` + }, + { + filename: 'test.vue', + code: unIndent` + +
aaa + bbb ccc + ddd + fff+ + ` + }, + { + filename: 'test.vue', + code: unIndent` + +
aaa + bbb ccc + ddd + fff+ + ` + }, + { + filename: 'test.vue', + code: unIndent` + +
aaa + bbb ccc + ddd + fff
+ + ++ + ` + }, + { + filename: 'test.vue', + code: unIndent` + +
+ text + text + text ++
+ text+
+ text+
+ text+ + ` } ], @@ -564,13 +641,54 @@ tester.run('html-indent', rule, loadPatterns( aaa bbb ccc - + `, errors: [ { message: 'Expected indentation of 2 spaces but found 0 spaces.', line: 2 }, { message: 'Expected indentation of 4 spaces but found 0 spaces.', line: 3 }, - { message: 'Expected indentation of 2 spaces but found 0 spaces.', line: 4 }, + { message: 'Expected indentation of 2 spaces but found 0 spaces.', line: 4 } + ] + }, + { + filename: 'test.vue', + code: unIndent` + +
+ aaa + bbb + ccc ++ + `, + output: unIndent` + +
+ aaa + bbb + ccc ++ + `, + errors: [ + { message: 'Expected indentation of 2 spaces but found 0 spaces.', line: 2 }, + { message: 'Expected indentation of 4 spaces but found 0 spaces.', line: 3 }, + { message: 'Expected indentation of 6 spaces but found 0 spaces.', line: 4 }, + { message: 'Expected indentation of 6 spaces but found 0 spaces.', line: 5 }, + { message: 'Expected indentation of 6 spaces but found 0 spaces.', line: 6 }, + { message: 'Expected indentation of 4 spaces but found 0 spaces.', line: 7 }, { message: 'Expected indentation of 2 spaces but found 0 spaces.', line: 8 } ] }