File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,45 @@ This rule reports issues with parsing of the `<style>` element by the ESLint Sve
1818<!-- eslint-skip-->
1919
2020``` svelte
21+ <script>
22+ /* eslint svelte/valid-style-parse: ["error"] */
23+ </script>
2124<!-- ✓ GOOD -->
2225<style>
2326 .class {
2427 font-weight: bold;
2528 }
2629</style>
30+ ```
2731
32+ ``` svelte
33+ <script>
34+ /* eslint svelte/valid-style-parse: ["error"] */
35+ </script>
36+ <!-- ✓ GOOD -->
2837<style lang="scss">
2938 .class {
3039 font-weight: bold;
3140 }
3241</style>
42+ ```
3343
44+ ``` svelte
45+ <script>
46+ /* eslint svelte/valid-style-parse: ["error"] */
47+ </script>
3448<!-- ✗ BAD -->
3549<style>
3650 .class
3751 font-weight: bold;
3852</style>
53+ ```
3954
55+ ``` svelte
56+ <script>
57+ /* eslint svelte/valid-style-parse: ["error"] */
58+ </script>
59+ <!-- ✗ BAD -->
4060<style lang="unknown">
4161 .class {
4262 font-weight: bold;
You can’t perform that action at this time.
0 commit comments