[1],
diff --git a/src/utils/rules.ts b/src/utils/rules.ts
index 793ea0838..6b7e2bf00 100644
--- a/src/utils/rules.ts
+++ b/src/utils/rules.ts
@@ -1,6 +1,7 @@
import type { RuleModule } from "../types"
import buttonHasType from "../rules/button-has-type"
import commentDirective from "../rules/comment-directive"
+import indent from "../rules/indent"
import maxAttributesPerLine from "../rules/max-attributes-per-line"
import noAtDebugTags from "../rules/no-at-debug-tags"
import noAtHtmlTags from "../rules/no-at-html-tags"
@@ -15,6 +16,7 @@ import system from "../rules/system"
export const rules = [
buttonHasType,
commentDirective,
+ indent,
maxAttributesPerLine,
noAtDebugTags,
noAtHtmlTags,
diff --git a/tests/fixtures/rules/indent/invalid/.eslintrc.js b/tests/fixtures/rules/indent/invalid/.eslintrc.js
new file mode 100644
index 000000000..496509f71
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/.eslintrc.js
@@ -0,0 +1,11 @@
+"use strict"
+
+module.exports = {
+ rules: {
+ "no-sparse-arrays": "off",
+ "no-unused-expressions": "off",
+ "no-var": "off",
+ "getter-return": "off",
+ "no-new": "off",
+ },
+}
diff --git a/tests/fixtures/rules/indent/invalid/4-indent/_config.json b/tests/fixtures/rules/indent/invalid/4-indent/_config.json
new file mode 100644
index 000000000..46f8def4c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/4-indent/_config.json
@@ -0,0 +1,3 @@
+{
+ "options": [{ "indent": 4 }]
+}
diff --git a/tests/fixtures/rules/indent/invalid/4-indent/test01-errors.json b/tests/fixtures/rules/indent/invalid/4-indent/test01-errors.json
new file mode 100644
index 000000000..115087cba
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/4-indent/test01-errors.json
@@ -0,0 +1,367 @@
+[
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 24 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 24 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 24 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 63,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 65,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 66,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 67,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 68,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 69,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 20 spaces but found 0 spaces.",
+ "line": 70,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 71,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 72,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 73,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 16 spaces but found 0 spaces.",
+ "line": 74,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 75,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 76,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 77,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 78,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 79,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 80,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 81,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 82,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 83,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 84,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 85,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/4-indent/test01-input.svelte b/tests/fixtures/rules/indent/invalid/4-indent/test01-input.svelte
new file mode 100644
index 000000000..16e32ee8a
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/4-indent/test01-input.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/4-indent/test01-output.svelte b/tests/fixtures/rules/indent/invalid/4-indent/test01-output.svelte
new file mode 100644
index 000000000..5a35121fb
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/4-indent/test01-output.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/await01-errors.json b/tests/fixtures/rules/indent/invalid/await01-errors.json
new file mode 100644
index 000000000..1dd049c5c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/await01-errors.json
@@ -0,0 +1,352 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 65,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 66,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 67,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 68,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 69,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 70,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 71,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 72,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 73,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 75,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 76,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 77,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 78,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 79,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 80,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 81,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 82,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 83,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 84,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/await01-input.svelte b/tests/fixtures/rules/indent/invalid/await01-input.svelte
new file mode 100644
index 000000000..e974a395c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/await01-input.svelte
@@ -0,0 +1,85 @@
+
+
+
+
+
+{#await expression}
+...
+{:then name}
+...
+{:catch name}
+...
+{/await}
+
+{#await expression}
+...
+{:then name}
+...
+{/await}
+
+{#await expression then name}
+...
+{/await}
+
+{#await expression catch name}
+...
+{/await}
+
+
+{
+#await
+expression
+}
+...
+{
+:then
+name
+}
+...
+{
+:catch
+name
+}
+...
+{
+/await
+}
+
+{
+#await
+expression
+}
+...
+{
+:then
+name
+}
+...
+{
+/await
+}
+
+{
+#await
+expression
+then
+name
+}
+...
+{
+/await
+}
+
+{
+#await
+expression
+catch
+name
+}
+...
+{
+/await
+}
+
diff --git a/tests/fixtures/rules/indent/invalid/await01-output.svelte b/tests/fixtures/rules/indent/invalid/await01-output.svelte
new file mode 100644
index 000000000..99f0fa713
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/await01-output.svelte
@@ -0,0 +1,85 @@
+
+
+
+
+
+ {#await expression}
+ ...
+ {:then name}
+ ...
+ {:catch name}
+ ...
+ {/await}
+
+ {#await expression}
+ ...
+ {:then name}
+ ...
+ {/await}
+
+ {#await expression then name}
+ ...
+ {/await}
+
+ {#await expression catch name}
+ ...
+ {/await}
+
+
+ {
+ #await
+ expression
+ }
+ ...
+ {
+ :then
+ name
+ }
+ ...
+ {
+ :catch
+ name
+ }
+ ...
+ {
+ /await
+ }
+
+ {
+ #await
+ expression
+ }
+ ...
+ {
+ :then
+ name
+ }
+ ...
+ {
+ /await
+ }
+
+ {
+ #await
+ expression
+ then
+ name
+ }
+ ...
+ {
+ /await
+ }
+
+ {
+ #await
+ expression
+ catch
+ name
+ }
+ ...
+ {
+ /await
+ }
+
diff --git a/tests/fixtures/rules/indent/invalid/each01-errors.json b/tests/fixtures/rules/indent/invalid/each01-errors.json
new file mode 100644
index 000000000..e0fec9ae7
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/each01-errors.json
@@ -0,0 +1,292 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 63,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 65,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 66,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 67,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 68,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 69,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 70,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 71,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 72,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 73,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 74,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/each01-input.svelte b/tests/fixtures/rules/indent/invalid/each01-input.svelte
new file mode 100644
index 000000000..6f773b4b9
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/each01-input.svelte
@@ -0,0 +1,77 @@
+
+
+
+The Famous Cats of YouTube
+
+
+
+
+
+{
+#each
+cats
+as
+{
+id,
+name
+}
+,
+i
+}
+-
+{i + 1}: {name}
+
+{
+/each
+}
+{
+#each
+cats
+as
+c
+,
+index
+(
+c
+.
+id
+)
+}
+{
+c
+}
+{
+index
+}
+{
+/each
+}
+{
+#each
+cats
+as
+cat
+}
+{cat.name}
+{
+:else
+}
+...
+{
+/each
+}
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/each01-output.svelte b/tests/fixtures/rules/indent/invalid/each01-output.svelte
new file mode 100644
index 000000000..6a1420191
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/each01-output.svelte
@@ -0,0 +1,77 @@
+
+
+
+The Famous Cats of YouTube
+
+
+
+
+
+ {
+ #each
+ cats
+ as
+ {
+ id,
+ name
+ }
+ ,
+ i
+ }
+ -
+ {i + 1}: {name}
+
+ {
+ /each
+ }
+ {
+ #each
+ cats
+ as
+ c
+ ,
+ index
+ (
+ c
+ .
+ id
+ )
+ }
+ {
+ c
+ }
+ {
+ index
+ }
+ {
+ /each
+ }
+ {
+ #each
+ cats
+ as
+ cat
+ }
+ {cat.name}
+ {
+ :else
+ }
+ ...
+ {
+ /each
+ }
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/if01-errors.json b/tests/fixtures/rules/indent/invalid/if01-errors.json
new file mode 100644
index 000000000..cf29edf2a
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/if01-errors.json
@@ -0,0 +1,157 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/if01-input.svelte b/tests/fixtures/rules/indent/invalid/if01-input.svelte
new file mode 100644
index 000000000..b30981f5e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/if01-input.svelte
@@ -0,0 +1,40 @@
+
+
+
+
+
+{#if a}
+
+{/if}
+{
+#if
+a
+}
+
+{
+/if
+}
+{
+#if
+a
+}
+
+{
+:else
+if
+b
+}
+
+{
+:else
+}
+
+{
+/if
+}
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/if01-output.svelte b/tests/fixtures/rules/indent/invalid/if01-output.svelte
new file mode 100644
index 000000000..67a87c5f4
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/if01-output.svelte
@@ -0,0 +1,40 @@
+
+
+
+
+
+ {#if a}
+
+ {/if}
+ {
+ #if
+ a
+ }
+
+ {
+ /if
+ }
+ {
+ #if
+ a
+ }
+
+ {
+ :else
+ if
+ b
+ }
+
+ {
+ :else
+ }
+
+ {
+ /if
+ }
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/key01-errors.json b/tests/fixtures/rules/indent/invalid/key01-errors.json
new file mode 100644
index 000000000..1a2fb0c58
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/key01-errors.json
@@ -0,0 +1,57 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/key01-input.svelte b/tests/fixtures/rules/indent/invalid/key01-input.svelte
new file mode 100644
index 000000000..19531234c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/key01-input.svelte
@@ -0,0 +1,23 @@
+
+
+
+
+
+{#key value}
+
+{/key}
+
+{
+#key
+value
+}
+
+{
+/key
+}
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/key01-output.svelte b/tests/fixtures/rules/indent/invalid/key01-output.svelte
new file mode 100644
index 000000000..728f45006
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/key01-output.svelte
@@ -0,0 +1,23 @@
+
+
+
+
+
+ {#key value}
+
+ {/key}
+
+ {
+ #key
+ value
+ }
+
+ {
+ /key
+ }
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-array01-errors.json b/tests/fixtures/rules/indent/invalid/script-array01-errors.json
new file mode 100644
index 000000000..262722d45
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-array01-errors.json
@@ -0,0 +1,102 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-array01-input.svelte b/tests/fixtures/rules/indent/invalid/script-array01-input.svelte
new file mode 100644
index 000000000..8de51689f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-array01-input.svelte
@@ -0,0 +1,25 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-array01-output.svelte b/tests/fixtures/rules/indent/invalid/script-array01-output.svelte
new file mode 100644
index 000000000..1506ec41c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-array01-output.svelte
@@ -0,0 +1,25 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-binary01-errors.json b/tests/fixtures/rules/indent/invalid/script-binary01-errors.json
new file mode 100644
index 000000000..fbcd79c56
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-binary01-errors.json
@@ -0,0 +1,212 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-binary01-input.svelte b/tests/fixtures/rules/indent/invalid/script-binary01-input.svelte
new file mode 100644
index 000000000..8a1235c99
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-binary01-input.svelte
@@ -0,0 +1,48 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-binary01-output.svelte b/tests/fixtures/rules/indent/invalid/script-binary01-output.svelte
new file mode 100644
index 000000000..61e2bc1ec
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-binary01-output.svelte
@@ -0,0 +1,48 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-block01-errors.json b/tests/fixtures/rules/indent/invalid/script-block01-errors.json
new file mode 100644
index 000000000..e22f405d1
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-block01-errors.json
@@ -0,0 +1,27 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-block01-input.svelte b/tests/fixtures/rules/indent/invalid/script-block01-input.svelte
new file mode 100644
index 000000000..674707fbb
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-block01-input.svelte
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-block01-output.svelte b/tests/fixtures/rules/indent/invalid/script-block01-output.svelte
new file mode 100644
index 000000000..d856694f2
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-block01-output.svelte
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-break01-errors.json b/tests/fixtures/rules/indent/invalid/script-break01-errors.json
new file mode 100644
index 000000000..24213363c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-break01-errors.json
@@ -0,0 +1,117 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-break01-input.svelte b/tests/fixtures/rules/indent/invalid/script-break01-input.svelte
new file mode 100644
index 000000000..c58726ce1
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-break01-input.svelte
@@ -0,0 +1,28 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-break01-output.svelte b/tests/fixtures/rules/indent/invalid/script-break01-output.svelte
new file mode 100644
index 000000000..e6b54b9c1
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-break01-output.svelte
@@ -0,0 +1,28 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-call01-errors.json b/tests/fixtures/rules/indent/invalid/script-call01-errors.json
new file mode 100644
index 000000000..b1c8afd0b
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-call01-errors.json
@@ -0,0 +1,182 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-call01-input.svelte b/tests/fixtures/rules/indent/invalid/script-call01-input.svelte
new file mode 100644
index 000000000..fe0af1f6c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-call01-input.svelte
@@ -0,0 +1,44 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-call01-output.svelte b/tests/fixtures/rules/indent/invalid/script-call01-output.svelte
new file mode 100644
index 000000000..0a4631c75
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-call01-output.svelte
@@ -0,0 +1,44 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-class01-errors.json b/tests/fixtures/rules/indent/invalid/script-class01-errors.json
new file mode 100644
index 000000000..09b619051
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-class01-errors.json
@@ -0,0 +1,247 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-class01-input.svelte b/tests/fixtures/rules/indent/invalid/script-class01-input.svelte
new file mode 100644
index 000000000..e020ba799
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-class01-input.svelte
@@ -0,0 +1,57 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-class01-output.svelte b/tests/fixtures/rules/indent/invalid/script-class01-output.svelte
new file mode 100644
index 000000000..7ee713b1f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-class01-output.svelte
@@ -0,0 +1,57 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-conditional01-errors.json b/tests/fixtures/rules/indent/invalid/script-conditional01-errors.json
new file mode 100644
index 000000000..491ac8e8f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-conditional01-errors.json
@@ -0,0 +1,242 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-conditional01-input.svelte b/tests/fixtures/rules/indent/invalid/script-conditional01-input.svelte
new file mode 100644
index 000000000..4764a2cd6
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-conditional01-input.svelte
@@ -0,0 +1,55 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-conditional01-output.svelte b/tests/fixtures/rules/indent/invalid/script-conditional01-output.svelte
new file mode 100644
index 000000000..019677f7b
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-conditional01-output.svelte
@@ -0,0 +1,55 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-do-while01-errors.json b/tests/fixtures/rules/indent/invalid/script-do-while01-errors.json
new file mode 100644
index 000000000..242c33bd3
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-do-while01-errors.json
@@ -0,0 +1,42 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-do-while01-input.svelte b/tests/fixtures/rules/indent/invalid/script-do-while01-input.svelte
new file mode 100644
index 000000000..c2ea87a8c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-do-while01-input.svelte
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-do-while01-output.svelte b/tests/fixtures/rules/indent/invalid/script-do-while01-output.svelte
new file mode 100644
index 000000000..74980203d
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-do-while01-output.svelte
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-export01-errors.json b/tests/fixtures/rules/indent/invalid/script-export01-errors.json
new file mode 100644
index 000000000..1874139c7
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-export01-errors.json
@@ -0,0 +1,232 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-export01-input.svelte b/tests/fixtures/rules/indent/invalid/script-export01-input.svelte
new file mode 100644
index 000000000..4e699a3ed
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-export01-input.svelte
@@ -0,0 +1,51 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-export01-output.svelte b/tests/fixtures/rules/indent/invalid/script-export01-output.svelte
new file mode 100644
index 000000000..83c7bf4a0
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-export01-output.svelte
@@ -0,0 +1,51 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-expr01-errors.json b/tests/fixtures/rules/indent/invalid/script-expr01-errors.json
new file mode 100644
index 000000000..201466bcf
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-expr01-errors.json
@@ -0,0 +1,142 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-expr01-input.svelte b/tests/fixtures/rules/indent/invalid/script-expr01-input.svelte
new file mode 100644
index 000000000..3820b1bd8
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-expr01-input.svelte
@@ -0,0 +1,33 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-expr01-output.svelte b/tests/fixtures/rules/indent/invalid/script-expr01-output.svelte
new file mode 100644
index 000000000..65cb0e65d
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-expr01-output.svelte
@@ -0,0 +1,33 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-for01-errors.json b/tests/fixtures/rules/indent/invalid/script-for01-errors.json
new file mode 100644
index 000000000..25de9be98
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-for01-errors.json
@@ -0,0 +1,292 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 4 spaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 60,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-for01-input.svelte b/tests/fixtures/rules/indent/invalid/script-for01-input.svelte
new file mode 100644
index 000000000..eb3c55719
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-for01-input.svelte
@@ -0,0 +1,63 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-for01-output.svelte b/tests/fixtures/rules/indent/invalid/script-for01-output.svelte
new file mode 100644
index 000000000..e75c80778
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-for01-output.svelte
@@ -0,0 +1,63 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-function01-errors.json b/tests/fixtures/rules/indent/invalid/script-function01-errors.json
new file mode 100644
index 000000000..b75d3b06b
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-function01-errors.json
@@ -0,0 +1,232 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-function01-input.svelte b/tests/fixtures/rules/indent/invalid/script-function01-input.svelte
new file mode 100644
index 000000000..94b7c2570
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-function01-input.svelte
@@ -0,0 +1,54 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-function01-output.svelte b/tests/fixtures/rules/indent/invalid/script-function01-output.svelte
new file mode 100644
index 000000000..f083169eb
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-function01-output.svelte
@@ -0,0 +1,54 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-if01-errors.json b/tests/fixtures/rules/indent/invalid/script-if01-errors.json
new file mode 100644
index 000000000..1bdc9a417
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-if01-errors.json
@@ -0,0 +1,297 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 63,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 65,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-if01-input.svelte b/tests/fixtures/rules/indent/invalid/script-if01-input.svelte
new file mode 100644
index 000000000..d3db4929f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-if01-input.svelte
@@ -0,0 +1,68 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-if01-output.svelte b/tests/fixtures/rules/indent/invalid/script-if01-output.svelte
new file mode 100644
index 000000000..7a8b5122e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-if01-output.svelte
@@ -0,0 +1,68 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-import01-errors.json b/tests/fixtures/rules/indent/invalid/script-import01-errors.json
new file mode 100644
index 000000000..ffa7635ed
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-import01-errors.json
@@ -0,0 +1,232 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-import01-input.svelte b/tests/fixtures/rules/indent/invalid/script-import01-input.svelte
new file mode 100644
index 000000000..d8919147e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-import01-input.svelte
@@ -0,0 +1,58 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-import01-output.svelte b/tests/fixtures/rules/indent/invalid/script-import01-output.svelte
new file mode 100644
index 000000000..6ec756de1
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-import01-output.svelte
@@ -0,0 +1,58 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-member01-errors.json b/tests/fixtures/rules/indent/invalid/script-member01-errors.json
new file mode 100644
index 000000000..cfb67563e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-member01-errors.json
@@ -0,0 +1,152 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-member01-input.svelte b/tests/fixtures/rules/indent/invalid/script-member01-input.svelte
new file mode 100644
index 000000000..c35abcae1
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-member01-input.svelte
@@ -0,0 +1,38 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-member01-output.svelte b/tests/fixtures/rules/indent/invalid/script-member01-output.svelte
new file mode 100644
index 000000000..8b8257283
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-member01-output.svelte
@@ -0,0 +1,38 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-prop01-errors.json b/tests/fixtures/rules/indent/invalid/script-prop01-errors.json
new file mode 100644
index 000000000..c9ba029be
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-prop01-errors.json
@@ -0,0 +1,142 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-prop01-input.svelte b/tests/fixtures/rules/indent/invalid/script-prop01-input.svelte
new file mode 100644
index 000000000..59a48207e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-prop01-input.svelte
@@ -0,0 +1,33 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-prop01-output.svelte b/tests/fixtures/rules/indent/invalid/script-prop01-output.svelte
new file mode 100644
index 000000000..2c058709c
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-prop01-output.svelte
@@ -0,0 +1,33 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-switch01-errors.json b/tests/fixtures/rules/indent/invalid/script-switch01-errors.json
new file mode 100644
index 000000000..07830f382
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-switch01-errors.json
@@ -0,0 +1,107 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-switch01-input.svelte b/tests/fixtures/rules/indent/invalid/script-switch01-input.svelte
new file mode 100644
index 000000000..6960ad1ff
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-switch01-input.svelte
@@ -0,0 +1,26 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-switch01-output.svelte b/tests/fixtures/rules/indent/invalid/script-switch01-output.svelte
new file mode 100644
index 000000000..c7f667b88
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-switch01-output.svelte
@@ -0,0 +1,26 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-try01-errors.json b/tests/fixtures/rules/indent/invalid/script-try01-errors.json
new file mode 100644
index 000000000..a824a409e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-try01-errors.json
@@ -0,0 +1,197 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 29,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 31,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-try01-input.svelte b/tests/fixtures/rules/indent/invalid/script-try01-input.svelte
new file mode 100644
index 000000000..1f7f7764d
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-try01-input.svelte
@@ -0,0 +1,45 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-try01-output.svelte b/tests/fixtures/rules/indent/invalid/script-try01-output.svelte
new file mode 100644
index 000000000..d5216bf50
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-try01-output.svelte
@@ -0,0 +1,45 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-unary01-errors.json b/tests/fixtures/rules/indent/invalid/script-unary01-errors.json
new file mode 100644
index 000000000..2b9548b33
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-unary01-errors.json
@@ -0,0 +1,132 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 27,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 28,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/script-unary01-input.svelte b/tests/fixtures/rules/indent/invalid/script-unary01-input.svelte
new file mode 100644
index 000000000..5da13719b
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-unary01-input.svelte
@@ -0,0 +1,31 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/script-unary01-output.svelte b/tests/fixtures/rules/indent/invalid/script-unary01-output.svelte
new file mode 100644
index 000000000..80c12b82d
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/script-unary01-output.svelte
@@ -0,0 +1,31 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/switch-case/_config.json b/tests/fixtures/rules/indent/invalid/switch-case/_config.json
new file mode 100644
index 000000000..b1b6e4ebc
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/switch-case/_config.json
@@ -0,0 +1,3 @@
+{
+ "options": [{ "switchCase": 0 }]
+}
diff --git a/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-errors.json b/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-errors.json
new file mode 100644
index 000000000..67dbd46ee
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-errors.json
@@ -0,0 +1,107 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 7,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 8,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 9,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 10,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 20,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 21,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-input.svelte b/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-input.svelte
new file mode 100644
index 000000000..a55e0160e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-input.svelte
@@ -0,0 +1,26 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-output.svelte b/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-output.svelte
new file mode 100644
index 000000000..eef04dbfe
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/switch-case/script-switch01-output.svelte
@@ -0,0 +1,26 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/_config.json b/tests/fixtures/rules/indent/invalid/tab-indent/_config.json
new file mode 100644
index 000000000..e5c08bebb
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/_config.json
@@ -0,0 +1,3 @@
+{
+ "options": [{ "indent": "tab" }]
+}
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/test01-errors.json b/tests/fixtures/rules/indent/invalid/tab-indent/test01-errors.json
new file mode 100644
index 000000000..83361130d
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/test01-errors.json
@@ -0,0 +1,367 @@
+[
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 tabs but found 0 tabs.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 tabs but found 0 tabs.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 tabs but found 0 tabs.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 63,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 65,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 66,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 67,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 68,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 69,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 0 tabs.",
+ "line": 70,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 71,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 72,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 73,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 0 tabs.",
+ "line": 74,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 75,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 0 tabs.",
+ "line": 76,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 77,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 78,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 79,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 80,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 81,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 0 tabs.",
+ "line": 82,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 83,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 84,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 0 tabs.",
+ "line": 85,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/test01-input.svelte b/tests/fixtures/rules/indent/invalid/tab-indent/test01-input.svelte
new file mode 100644
index 000000000..79b6a8d4a
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/test01-input.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/test01-output.svelte b/tests/fixtures/rules/indent/invalid/tab-indent/test01-output.svelte
new file mode 100644
index 000000000..0f553dad7
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/test01-output.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/test02-errors.json b/tests/fixtures/rules/indent/invalid/tab-indent/test02-errors.json
new file mode 100644
index 000000000..7853b26e0
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/test02-errors.json
@@ -0,0 +1,367 @@
+[
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 tabs but found 24 whitespaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 tabs but found 24 whitespaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 tabs but found 24 whitespaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 63,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 65,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 66,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 67,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 68,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 69,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 5 tabs but found 20 whitespaces.",
+ "line": 70,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 71,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 72,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 73,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 tabs but found 16 whitespaces.",
+ "line": 74,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 75,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 3 tabs but found 12 whitespaces.",
+ "line": 76,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 77,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 78,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 79,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 80,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 81,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 tabs but found 8 whitespaces.",
+ "line": 82,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 83,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 84,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 1 tab but found 4 whitespaces.",
+ "line": 85,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/test02-input.svelte b/tests/fixtures/rules/indent/invalid/tab-indent/test02-input.svelte
new file mode 100644
index 000000000..77cf6fb28
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/test02-input.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/tab-indent/test02-output.svelte b/tests/fixtures/rules/indent/invalid/tab-indent/test02-output.svelte
new file mode 100644
index 000000000..ab913d54e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/tab-indent/test02-output.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/test01-errors.json b/tests/fixtures/rules/indent/invalid/test01-errors.json
new file mode 100644
index 000000000..fb7176c7e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/test01-errors.json
@@ -0,0 +1,367 @@
+[
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 3,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 4,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 5,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 6,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 11,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 12,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 13,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 14,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 15,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 16,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 17,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 18,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 19,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 22,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 23,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 24,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 25,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 26,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 30,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 32,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 33,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 34,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 35,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 36,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 37,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 38,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 39,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 40,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 41,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 42,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 43,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 44,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 45,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 46,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 47,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 48,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 49,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 12 spaces but found 0 spaces.",
+ "line": 50,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 51,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 52,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 53,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 54,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 55,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 56,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 57,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 58,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 59,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 60,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 61,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 62,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 63,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 64,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 65,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 66,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 67,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 68,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 69,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 10 spaces but found 0 spaces.",
+ "line": 70,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 71,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 72,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 73,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 8 spaces but found 0 spaces.",
+ "line": 74,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 75,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 6 spaces but found 0 spaces.",
+ "line": 76,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 77,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 78,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 79,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 80,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 81,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 4 spaces but found 0 spaces.",
+ "line": 82,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 83,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 84,
+ "column": 1
+ },
+ {
+ "message": "Expected indentation of 2 spaces but found 0 spaces.",
+ "line": 85,
+ "column": 1
+ }
+]
diff --git a/tests/fixtures/rules/indent/invalid/test01-input.svelte b/tests/fixtures/rules/indent/invalid/test01-input.svelte
new file mode 100644
index 000000000..5ca4f8686
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/test01-input.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/test01-output.svelte b/tests/fixtures/rules/indent/invalid/test01-output.svelte
new file mode 100644
index 000000000..4c7045b11
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/test01-output.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/fixtures/rules/indent/valid/test01-input.svelte b/tests/fixtures/rules/indent/valid/test01-input.svelte
new file mode 100644
index 000000000..4c7045b11
--- /dev/null
+++ b/tests/fixtures/rules/indent/valid/test01-input.svelte
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/src/rules/indent.ts b/tests/src/rules/indent.ts
new file mode 100644
index 000000000..5051b6ba2
--- /dev/null
+++ b/tests/src/rules/indent.ts
@@ -0,0 +1,12 @@
+import { RuleTester } from "eslint"
+import rule from "../../../src/rules/indent"
+import { loadTestCases } from "../../utils/utils"
+
+const tester = new RuleTester({
+ parserOptions: {
+ ecmaVersion: 2020,
+ sourceType: "module",
+ },
+})
+
+tester.run("indent", rule as any, loadTestCases("indent"))
diff --git a/tests/utils/utils.ts b/tests/utils/utils.ts
index 0b69c8b39..f9716cf68 100644
--- a/tests/utils/utils.ts
+++ b/tests/utils/utils.ts
@@ -180,6 +180,10 @@ function writeFixtures(
[ruleName]: ["error", ...(config.options || [])],
},
parser: "svelte-eslint-parser",
+ parserOptions: {
+ ecmaVersion: 2020,
+ sourceType: "module",
+ },
},
config.filename,
)
@@ -193,7 +197,7 @@ function writeFixtures(
column: m.column,
})),
null,
- 4,
+ 2,
)}\n`,
"utf8",
)
diff --git a/tools/lib/load-rules.ts b/tools/lib/load-rules.ts
index e00a90e59..934c75918 100644
--- a/tools/lib/load-rules.ts
+++ b/tools/lib/load-rules.ts
@@ -7,9 +7,10 @@ import fs from "fs"
*/
function readRules() {
const rulesLibRoot = path.resolve(__dirname, "../../src/rules")
- const result = fs.readdirSync(rulesLibRoot)
const rules = []
- for (const name of result) {
+ for (const name of fs
+ .readdirSync(rulesLibRoot)
+ .filter((n) => n.endsWith(".ts"))) {
const ruleName = name.replace(/\.ts$/u, "")
const ruleId = `@ota-meshi/svelte/${ruleName}`
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports -- ignore
diff --git a/typings/eslint-utils/index.d.ts b/typings/eslint-utils/index.d.ts
new file mode 100644
index 000000000..63c2a768b
--- /dev/null
+++ b/typings/eslint-utils/index.d.ts
@@ -0,0 +1,24 @@
+import type { AST } from "svelte-eslint-parser"
+type Token = { type: string; value: string }
+export function isArrowToken(token: Token): boolean
+export function isCommaToken(token: Token): boolean
+export function isSemicolonToken(token: Token): boolean
+export function isColonToken(token: Token): boolean
+export function isOpeningParenToken(token: Token): boolean
+export function isClosingParenToken(token: Token): boolean
+export function isOpeningBracketToken(token: Token): boolean
+export function isClosingBracketToken(token: Token): boolean
+export function isOpeningBraceToken(token: Token): boolean
+export function isClosingBraceToken(token: Token): boolean
+export function isCommentToken(token: Token): token is AST.Comment
+export function isNotArrowToken(token: Token): boolean
+export function isNotCommaToken(token: Token): boolean
+export function isNotSemicolonToken(token: Token): boolean
+export function isNotColonToken(token: Token): boolean
+export function isNotOpeningParenToken(token: Token): boolean
+export function isNotClosingParenToken(token: Token): boolean
+export function isNotOpeningBracketToken(token: Token): boolean
+export function isNotClosingBracketToken(token: Token): boolean
+export function isNotOpeningBraceToken(token: Token): boolean
+export function isNotClosingBraceToken(token: Token): boolean
+export function isNotCommentToken(token: Token): boolean