diff --git a/src/rules/html-closing-bracket-spacing.ts b/src/rules/html-closing-bracket-spacing.ts
index 243104455..34bd0280c 100644
--- a/src/rules/html-closing-bracket-spacing.ts
+++ b/src/rules/html-closing-bracket-spacing.ts
@@ -84,8 +84,8 @@ export default createRule('html-closing-bracket-spacing', {
node.type === 'SvelteEndTag'
? 'endTag'
: node.selfClosing
- ? 'selfClosingTag'
- : 'startTag';
+ ? 'selfClosingTag'
+ : 'startTag';
if (options[tagType] === 'ignore') return;
diff --git a/src/rules/indent-helpers/index.ts b/src/rules/indent-helpers/index.ts
index 6ef6172db..258904c77 100644
--- a/src/rules/indent-helpers/index.ts
+++ b/src/rules/indent-helpers/index.ts
@@ -127,8 +127,8 @@ export function defineVisitor(
actualUnit: mismatchCharIndexes.length
? 'whitespace'
: options.indentChar === '\t'
- ? 'tab'
- : 'space',
+ ? 'tab'
+ : 'space',
expectedIndentPlural: expectedIndent === 1 ? '' : 's',
actualIndentPlural: actualIndent === 1 ? '' : 's'
},
diff --git a/src/shared/svelte-compile-warns/index.ts b/src/shared/svelte-compile-warns/index.ts
index f41434364..52db20268 100644
--- a/src/shared/svelte-compile-warns/index.ts
+++ b/src/shared/svelte-compile-warns/index.ts
@@ -385,8 +385,8 @@ function* transformScripts(context: RuleContext, text: string) {
? transformWithTypescript
: transformWithBabel
: isUseBabel(context)
- ? transformWithBabel
- : null;
+ ? transformWithBabel
+ : null;
const sourceCode = getSourceCode(context);
if (transform) {
@@ -431,8 +431,8 @@ function getWarningsFromCode(
...(semver.satisfies(compiler.VERSION, '>=4.0.0-0')
? { customElement: true }
: hasTagOption(getSourceCode(context).ast)
- ? { customElement: true }
- : {})
+ ? { customElement: true }
+ : {})
});
return { warnings: result.warnings as Warning[], kind: 'warn' };
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion01-requirements.json b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion01-requirements.json
new file mode 100644
index 000000000..1f79aed2f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion01-requirements.json
@@ -0,0 +1,3 @@
+{
+ "@typescript-eslint/parser": "<6.11.0"
+}
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion03-requirements.json b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion03-requirements.json
new file mode 100644
index 000000000..1f79aed2f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion03-requirements.json
@@ -0,0 +1,3 @@
+{
+ "@typescript-eslint/parser": "<6.11.0"
+}
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion04-requirements.json b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion04-requirements.json
new file mode 100644
index 000000000..1f79aed2f
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-assertion04-requirements.json
@@ -0,0 +1,3 @@
+{
+ "@typescript-eslint/parser": "<6.11.0"
+}
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes01-input.svelte b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes01-input.svelte
new file mode 100644
index 000000000..8335e5e36
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes01-input.svelte
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes01-requirements.json b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes01-requirements.json
new file mode 100644
index 000000000..37dbb3af8
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes01-requirements.json
@@ -0,0 +1,3 @@
+{
+ "typescript": ">=5.3.0"
+}
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-errors.yaml b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-errors.yaml
new file mode 100644
index 000000000..063322b9e
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-errors.yaml
@@ -0,0 +1,48 @@
+- message: Expected indentation of 2 spaces but found 0 spaces.
+ line: 3
+ column: 1
+ suggestions: null
+- message: Expected indentation of 4 spaces but found 0 spaces.
+ line: 4
+ column: 1
+ suggestions: null
+- message: Expected indentation of 4 spaces but found 0 spaces.
+ line: 5
+ column: 1
+ suggestions: null
+- message: Expected indentation of 6 spaces but found 0 spaces.
+ line: 6
+ column: 1
+ suggestions: null
+- message: Expected indentation of 8 spaces but found 0 spaces.
+ line: 7
+ column: 1
+ suggestions: null
+- message: Expected indentation of 8 spaces but found 0 spaces.
+ line: 8
+ column: 1
+ suggestions: null
+- message: Expected indentation of 10 spaces but found 0 spaces.
+ line: 9
+ column: 1
+ suggestions: null
+- message: Expected indentation of 12 spaces but found 0 spaces.
+ line: 10
+ column: 1
+ suggestions: null
+- message: Expected indentation of 12 spaces but found 0 spaces.
+ line: 11
+ column: 1
+ suggestions: null
+- message: Expected indentation of 8 spaces but found 0 spaces.
+ line: 12
+ column: 1
+ suggestions: null
+- message: Expected indentation of 4 spaces but found 0 spaces.
+ line: 13
+ column: 1
+ suggestions: null
+- message: Expected indentation of 2 spaces but found 0 spaces.
+ line: 14
+ column: 1
+ suggestions: null
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-input.svelte b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-input.svelte
new file mode 100644
index 000000000..600450f50
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-input.svelte
@@ -0,0 +1,17 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-output.svelte b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-output.svelte
new file mode 100644
index 000000000..9dcc3b5a9
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes02-output.svelte
@@ -0,0 +1,17 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes03-input.svelte b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes03-input.svelte
new file mode 100644
index 000000000..6e5237d69
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes03-input.svelte
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes03-requirements.json b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes03-requirements.json
new file mode 100644
index 000000000..37dbb3af8
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes03-requirements.json
@@ -0,0 +1,3 @@
+{
+ "typescript": ">=5.3.0"
+}
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes04-input.svelte b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes04-input.svelte
new file mode 100644
index 000000000..64615f8dc
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes04-input.svelte
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes04-requirements.json b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes04-requirements.json
new file mode 100644
index 000000000..37dbb3af8
--- /dev/null
+++ b/tests/fixtures/rules/indent/invalid/ts-v5/ts-import-attributes04-requirements.json
@@ -0,0 +1,3 @@
+{
+ "typescript": ">=5.3.0"
+}
diff --git a/tests/utils/utils.ts b/tests/utils/utils.ts
index 71dec7d35..2f445ad42 100644
--- a/tests/utils/utils.ts
+++ b/tests/utils/utils.ts
@@ -205,8 +205,8 @@ function writeFixtures(ruleName: string, inputFile: string, { force }: { force?:
path.extname(inputFile) === '.svelte'
? 'svelte-eslint-parser'
: path.extname(inputFile) === '.ts'
- ? '@typescript-eslint/parser'
- : undefined;
+ ? '@typescript-eslint/parser'
+ : undefined;
const { code, filename, options, ...verifyConfig } = config;
const result = linter.verify(
code,
@@ -285,8 +285,8 @@ function getConfig(ruleName: string, inputFile: string) {
path.extname(filename) === '.svelte'
? require.resolve('svelte-eslint-parser')
: path.extname(inputFile) === '.ts'
- ? require.resolve('@typescript-eslint/parser')
- : undefined;
+ ? require.resolve('@typescript-eslint/parser')
+ : undefined;
return Object.assign(
{