Skip to content

Commit 2d0b3ab

Browse files
committed
sentence
1 parent a9c64a4 commit 2d0b3ab

17 files changed

+17
-17
lines changed

packages/eslint-plugin-svelte/src/rules/block-lang.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function buildReplaceLangSuggestions(
184184
};
185185
}
186186
return {
187-
desc: `Add a <${tagName}> block with the lang attribute set to "${lang}".`,
187+
desc: `Add lang attribute to a <${tagName}> block with the value "${lang}".`,
188188
fix: (fixer) => {
189189
return fixer.insertTextBeforeRange(
190190
[node.startTag.range[0] + tagName.length + 1, 0],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "javascript".
5+
- desc: Add lang attribute to a <script> block with the value "javascript".
66
output: |
77
<script lang="javascript"></script>
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "javascript".
5+
- desc: Add lang attribute to a <script> block with the value "javascript".
66
output: |
77
<script lang="javascript"></script>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "js".
5+
- desc: Add lang attribute to a <script> block with the value "js".
66
output: |
77
<script lang="js"></script>
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "js".
5+
- desc: Add lang attribute to a <script> block with the value "js".
66
output: |
77
<script lang="js"></script>

packages/eslint-plugin-svelte/tests/fixtures/rules/block-lang/invalid/script/module-context/null01-errors.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "ts".
5+
- desc: Add lang attribute to a <script> block with the value "ts".
66
output: |
77
<script lang="ts" context="module"></script>
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "ts".
5+
- desc: Add lang attribute to a <script> block with the value "ts".
66
output: |
77
<script lang="ts" context="module"></script>
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "ts".
5+
- desc: Add lang attribute to a <script> block with the value "ts".
66
output: |
77
<script lang="ts"></script>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "ts".
5+
- desc: Add lang attribute to a <script> block with the value "ts".
66
output: |
77
<script lang="ts"></script>
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
line: 1
33
column: 1
44
suggestions:
5-
- desc: Add a <script> block with the lang attribute set to "ts".
5+
- desc: Add lang attribute to a <script> block with the value "ts".
66
output: |
77
<script lang="ts"></script>

0 commit comments

Comments
 (0)