diff --git a/tests/fixtures/rules/html-self-closing/invalid/component-never/component-never-errors.json b/tests/fixtures/rules/html-self-closing/invalid/component-never/component-never-errors.json
deleted file mode 100644
index a7d505baf..000000000
--- a/tests/fixtures/rules/html-self-closing/invalid/component-never/component-never-errors.json
+++ /dev/null
@@ -1,12 +0,0 @@
-[
- {
- "message": "Disallow self-closing on Svelte custom components.",
- "line": 3,
- "column": 3
- },
- {
- "message": "Disallow self-closing on Svelte custom components.",
- "line": 4,
- "column": 3
- }
-]
diff --git a/tests/fixtures/rules/html-self-closing/invalid/component-never/component-never-errors.yaml b/tests/fixtures/rules/html-self-closing/invalid/component-never/component-never-errors.yaml
new file mode 100644
index 000000000..6cc3ce928
--- /dev/null
+++ b/tests/fixtures/rules/html-self-closing/invalid/component-never/component-never-errors.yaml
@@ -0,0 +1,8 @@
+- message: Disallow self-closing on Svelte custom components.
+ line: 3
+ column: 3
+ suggestions: null
+- message: Disallow self-closing on Svelte custom components.
+ line: 4
+ column: 3
+ suggestions: null
diff --git a/tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-errors.json b/tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-errors.json
deleted file mode 100644
index c14a98697..000000000
--- a/tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-errors.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "message": "Require self-closing on HTML void elements.",
- "line": 5,
- "column": 3
- }
-]
diff --git a/tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-errors.yaml b/tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-errors.yaml
new file mode 100644
index 000000000..1c9d1f3ab
--- /dev/null
+++ b/tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-errors.yaml
@@ -0,0 +1,4 @@
+- message: Require self-closing on HTML void elements.
+ line: 5
+ column: 3
+ suggestions: null
diff --git a/tests/fixtures/rules/html-self-closing/invalid/normal-never/component-never-errors.json b/tests/fixtures/rules/html-self-closing/invalid/normal-never/component-never-errors.json
deleted file mode 100644
index 1d62f7723..000000000
--- a/tests/fixtures/rules/html-self-closing/invalid/normal-never/component-never-errors.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "message": "Disallow self-closing on HTML elements.",
- "line": 3,
- "column": 3
- }
-]
diff --git a/tests/fixtures/rules/html-self-closing/invalid/normal-never/component-never-errors.yaml b/tests/fixtures/rules/html-self-closing/invalid/normal-never/component-never-errors.yaml
new file mode 100644
index 000000000..3a1b45ada
--- /dev/null
+++ b/tests/fixtures/rules/html-self-closing/invalid/normal-never/component-never-errors.yaml
@@ -0,0 +1,4 @@
+- message: Disallow self-closing on HTML elements.
+ line: 3
+ column: 3
+ suggestions: null
diff --git a/tests/fixtures/rules/html-self-closing/invalid/svelte-never/svelte-never-errors.json b/tests/fixtures/rules/html-self-closing/invalid/svelte-never/svelte-never-errors.json
deleted file mode 100644
index 6531399aa..000000000
--- a/tests/fixtures/rules/html-self-closing/invalid/svelte-never/svelte-never-errors.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "message": "Disallow self-closing on Svelte special elements.",
- "line": 2,
- "column": 1
- }
-]
diff --git a/tests/fixtures/rules/html-self-closing/invalid/svelte-never/svelte-never-errors.yaml b/tests/fixtures/rules/html-self-closing/invalid/svelte-never/svelte-never-errors.yaml
new file mode 100644
index 000000000..2824cb38e
--- /dev/null
+++ b/tests/fixtures/rules/html-self-closing/invalid/svelte-never/svelte-never-errors.yaml
@@ -0,0 +1,4 @@
+- message: Disallow self-closing on Svelte special elements.
+ line: 2
+ column: 1
+ suggestions: null
diff --git a/tests/fixtures/rules/html-self-closing/invalid/test01-errors.json b/tests/fixtures/rules/html-self-closing/invalid/test01-errors.json
deleted file mode 100644
index 7ab1a841f..000000000
--- a/tests/fixtures/rules/html-self-closing/invalid/test01-errors.json
+++ /dev/null
@@ -1,17 +0,0 @@
-[
- {
- "message": "Require self-closing on HTML elements.",
- "line": 3,
- "column": 3
- },
- {
- "message": "Require self-closing on Svelte custom components.",
- "line": 4,
- "column": 3
- },
- {
- "message": "Require self-closing on HTML void elements.",
- "line": 5,
- "column": 3
- }
-]
diff --git a/tests/fixtures/rules/html-self-closing/invalid/test01-errors.yaml b/tests/fixtures/rules/html-self-closing/invalid/test01-errors.yaml
new file mode 100644
index 000000000..7d6d178a0
--- /dev/null
+++ b/tests/fixtures/rules/html-self-closing/invalid/test01-errors.yaml
@@ -0,0 +1,12 @@
+- message: Require self-closing on HTML elements.
+ line: 3
+ column: 3
+ suggestions: null
+- message: Require self-closing on Svelte custom components.
+ line: 4
+ column: 3
+ suggestions: null
+- message: Require self-closing on HTML void elements.
+ line: 5
+ column: 3
+ suggestions: null
diff --git a/tests/fixtures/rules/html-self-closing/invalid/void-never/void-never-errors.json b/tests/fixtures/rules/html-self-closing/invalid/void-never/void-never-errors.json
deleted file mode 100644
index 3b61e0b15..000000000
--- a/tests/fixtures/rules/html-self-closing/invalid/void-never/void-never-errors.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "message": "Disallow self-closing on HTML void elements.",
- "line": 3,
- "column": 3
- }
-]
diff --git a/tests/fixtures/rules/html-self-closing/invalid/void-never/void-never-errors.yaml b/tests/fixtures/rules/html-self-closing/invalid/void-never/void-never-errors.yaml
new file mode 100644
index 000000000..baf16208e
--- /dev/null
+++ b/tests/fixtures/rules/html-self-closing/invalid/void-never/void-never-errors.yaml
@@ -0,0 +1,4 @@
+- message: Disallow self-closing on HTML void elements.
+ line: 3
+ column: 3
+ suggestions: null
diff --git a/tests/fixtures/rules/no-reactive-functions/invalid/test01-errors.json b/tests/fixtures/rules/no-reactive-functions/invalid/test01-errors.json
deleted file mode 100644
index 924be5e56..000000000
--- a/tests/fixtures/rules/no-reactive-functions/invalid/test01-errors.json
+++ /dev/null
@@ -1,38 +0,0 @@
-[
- {
- "message": "Do not create functions inside reactive statements unless absolutely necessary.",
- "line": 3,
- "column": 5,
- "suggestions": [
- {
- "desc": "Move the function out of the reactive statement",
- "messageId": "fixReactiveFns",
- "output": "\n\n"
- }
- ]
- },
- {
- "message": "Do not create functions inside reactive statements unless absolutely necessary.",
- "line": 4,
- "column": 5,
- "suggestions": [
- {
- "desc": "Move the function out of the reactive statement",
- "messageId": "fixReactiveFns",
- "output": "\n\n"
- }
- ]
- },
- {
- "message": "Do not create functions inside reactive statements unless absolutely necessary.",
- "line": 5,
- "column": 5,
- "suggestions": [
- {
- "desc": "Move the function out of the reactive statement",
- "messageId": "fixReactiveFns",
- "output": "\n\n"
- }
- ]
- }
-]
diff --git a/tests/fixtures/rules/no-reactive-functions/invalid/test01-errors.yaml b/tests/fixtures/rules/no-reactive-functions/invalid/test01-errors.yaml
new file mode 100644
index 000000000..54d4e966a
--- /dev/null
+++ b/tests/fixtures/rules/no-reactive-functions/invalid/test01-errors.yaml
@@ -0,0 +1,42 @@
+- message: Do not create functions inside reactive statements unless absolutely
+ necessary.
+ line: 3
+ column: 5
+ suggestions:
+ - desc: Move the function out of the reactive statement
+ messageId: fixReactiveFns
+ output: |
+
+
+- message: Do not create functions inside reactive statements unless absolutely
+ necessary.
+ line: 4
+ column: 5
+ suggestions:
+ - desc: Move the function out of the reactive statement
+ messageId: fixReactiveFns
+ output: |
+
+
+- message: Do not create functions inside reactive statements unless absolutely
+ necessary.
+ line: 5
+ column: 5
+ suggestions:
+ - desc: Move the function out of the reactive statement
+ messageId: fixReactiveFns
+ output: |
+
+
diff --git a/tests/utils/utils.ts b/tests/utils/utils.ts
index 848d80580..42a34d1df 100644
--- a/tests/utils/utils.ts
+++ b/tests/utils/utils.ts
@@ -94,14 +94,6 @@ export function loadTestCases(
let errors
if (fs.existsSync(errorFile)) {
errors = fs.readFileSync(errorFile, "utf8")
- } else if (
- fs.existsSync(inputFile.replace(/input\.[a-z]+$/u, "errors.json"))
- ) {
- // Workaround to not block PRs.
- errors = fs.readFileSync(
- inputFile.replace(/input\.[a-z]+$/u, "errors.json"),
- "utf8",
- )
} else {
writeFixtures(ruleName, inputFile)
errors = fs.readFileSync(errorFile, "utf8")
@@ -220,9 +212,6 @@ function writeFixtures(
}))
: null,
})),
- {
- quotingType: '"',
- },
)}`,
"utf8",
)