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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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/ts/ts-as-style-lang01-errors.yaml

+1-1
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/typescript/null01-errors.yaml

+1-1
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 "typescript".
5+
- desc: Add lang attribute to a <script> block with the value "typescript".
66
output: |
77
<script lang="typescript"></script>

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

+1-1
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 "typescript".
5+
- desc: Add lang attribute to a <script> block with the value "typescript".
66
output: |
77
<script lang="typescript"></script>
88

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)