diff --git a/docs/rules/indent.md b/docs/rules/indent.md index 0d5a59101..294ad37e2 100644 --- a/docs/rules/indent.md +++ b/docs/rules/indent.md @@ -88,6 +88,7 @@ This rule only checks `.svelte` files and does not interfere with other `.js` fi ``` - `indent` (`number | "tab"`) ... The type of indentation. Default is `2`. If this is a number, it's the number of spaces for one indent. If this is `"tab"`, it uses one tab for one indent. +- `indentScript` (`boolean`) ... If contents within a ` diff --git a/tests/fixtures/rules/indent/invalid/indent-script/indent-script-output.svelte b/tests/fixtures/rules/indent/invalid/indent-script/indent-script-output.svelte new file mode 100644 index 000000000..bfd37fe5e --- /dev/null +++ b/tests/fixtures/rules/indent/invalid/indent-script/indent-script-output.svelte @@ -0,0 +1,4 @@ + + diff --git a/tests/fixtures/rules/indent/valid/indent-script-input.svelte b/tests/fixtures/rules/indent/valid/indent-script-input.svelte new file mode 100644 index 000000000..105f80da8 --- /dev/null +++ b/tests/fixtures/rules/indent/valid/indent-script-input.svelte @@ -0,0 +1,4 @@ + +