Skip to content

Commit 8ad1bf0

Browse files
committed
update fixture
1 parent aab069b commit 8ad1bf0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+221
-41
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "javascript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "javascript".
6+
output: |
7+
<script lang="javascript"></script>
8+
9+
<style lang="javascript"></style>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "javascript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "javascript".
6+
output: |
7+
<script lang="javascript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "javascript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "javascript".
6+
output: |
7+
<script lang="javascript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "javascript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "javascript".
6+
output: |
7+
<script lang="javascript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "javascript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "javascript".
6+
output: |
7+
<script lang="javascript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "js".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "js".
6+
output: |
7+
<script lang="js"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "js".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "js".
6+
output: |
7+
<script lang="js"></script>
8+
9+
<style lang="js"></style>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "js".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "js".
6+
output: |
7+
<script lang="js"></script>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "js".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "js".
6+
output: |
7+
<script lang="js"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "js".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "js".
6+
output: |
7+
<script lang="js"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script context="module" lang="ts"></script>
8+
9+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script context="module" lang="ts"></script>
8+
9+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts" context="module"></script>
8+
9+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts" context="module"></script>
8+
9+
<script lang="ts"></script>
10+
11+
<style lang="ts"></style>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script context="module" lang="ts"></script>
8+
9+
<script lang="ts"></script>

packages/eslint-plugin-svelte/tests/fixtures/rules/block-lang/invalid/script/multiple/javascript01-errors.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
one of "ts", "typescript".
33
line: 1
44
column: 1
5-
suggestions: null
5+
suggestions:
6+
- desc: Add a <script> block with the lang attribute set to "ts".
7+
output: |
8+
<script lang="ts"></script>
9+
- desc: Add a <script> block with the lang attribute set to "typescript".
10+
output: |
11+
<script lang="typescript"></script>

packages/eslint-plugin-svelte/tests/fixtures/rules/block-lang/invalid/script/multiple/js01-errors.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
one of "ts", "typescript".
33
line: 1
44
column: 1
5-
suggestions: null
5+
suggestions:
6+
- desc: Add a <script> block with the lang attribute set to "ts".
7+
output: |
8+
<script lang="ts"></script>
9+
- desc: Add a <script> block with the lang attribute set to "typescript".
10+
output: |
11+
<script lang="typescript"></script>

packages/eslint-plugin-svelte/tests/fixtures/rules/block-lang/invalid/script/multiple/null-as-style-lang01-errors.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22
one of "ts", "typescript".
33
line: 1
44
column: 1
5-
suggestions: null
5+
suggestions:
6+
- desc: Add a <script> block with the lang attribute set to "ts".
7+
output: |
8+
<script lang="ts"></script>
9+
10+
<style></style>
11+
- desc: Add a <script> block with the lang attribute set to "typescript".
12+
output: |
13+
<script lang="typescript"></script>
14+
15+
<style></style>

packages/eslint-plugin-svelte/tests/fixtures/rules/block-lang/invalid/script/multiple/ts-as-style-lang01-errors.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22
one of "ts", "typescript".
33
line: 1
44
column: 1
5-
suggestions: null
5+
suggestions:
6+
- desc: Add a <script> block with the lang attribute set to "ts".
7+
output: |
8+
<script lang="ts"></script>
9+
10+
<style lang="ts"></style>
11+
- desc: Add a <script> block with the lang attribute set to "typescript".
12+
output: |
13+
<script lang="typescript"></script>
14+
15+
<style lang="ts"></style>

packages/eslint-plugin-svelte/tests/fixtures/rules/block-lang/invalid/script/multiple/typescript-as-style-lang01-errors.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22
one of "ts", "typescript".
33
line: 1
44
column: 1
5-
suggestions: null
5+
suggestions:
6+
- desc: Add a <script> block with the lang attribute set to "ts".
7+
output: |
8+
<script lang="ts"></script>
9+
10+
<style lang="typescript"></style>
11+
- desc: Add a <script> block with the lang attribute set to "typescript".
12+
output: |
13+
<script lang="typescript"></script>
14+
15+
<style lang="typescript"></style>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
8+
9+
<style lang="ts"></style>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
8+
9+
<style lang="ts"></style>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "ts".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "ts".
6+
output: |
7+
<script lang="ts"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "typescript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "typescript".
6+
output: |
7+
<script lang="typescript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "typescript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "typescript".
6+
output: |
7+
<script lang="typescript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "typescript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "typescript".
6+
output: |
7+
<script lang="typescript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <script> block should be "typescript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "typescript".
6+
output: |
7+
<script lang="typescript"></script>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
- message: The lang attribute of the <script> block should be "typescript".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <script> block with the lang attribute set to "typescript".
6+
output: |
7+
<script lang="typescript"></script>
8+
9+
<style lang="typescript"></style>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <style> block should be "sass".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <style> block with the lang attribute set to "sass".
6+
output: |
7+
<style lang="sass"></style>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
- message: The lang attribute of the <style> block should be "sass".
22
line: 5
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <style> block with the lang attribute set to "sass".
6+
output: |
7+
<script lang="sass">
8+
9+
</script>
10+
11+
<style lang="sass"></style>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- message: The lang attribute of the <style> block should be "sass".
22
line: 1
33
column: 1
4-
suggestions: null
4+
suggestions:
5+
- desc: Add a <style> block with the lang attribute set to "sass".
6+
output: |
7+
<style lang="sass"></style>

0 commit comments

Comments
 (0)