mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
export default {
|
|
warnings: [
|
|
{
|
|
code: 'css-unused-selector',
|
|
frame: `
|
|
12:
|
|
13: /* no match */
|
|
14: .a + .e { color: green; }
|
|
^
|
|
15: .b + .c { color: green; }
|
|
16: .c + .d { color: green; }`,
|
|
message: 'Unused CSS selector ".a + .e"',
|
|
pos: 242,
|
|
start: { character: 242, column: 1, line: 14 },
|
|
end: { character: 249, column: 8, line: 14 }
|
|
},
|
|
{
|
|
code: 'css-unused-selector',
|
|
frame: `
|
|
13: /* no match */
|
|
14: .a + .e { color: green; }
|
|
15: .b + .c { color: green; }
|
|
^
|
|
16: .c + .d { color: green; }
|
|
17: .b + .d { color: green; }`,
|
|
message: 'Unused CSS selector ".b + .c"',
|
|
pos: 269,
|
|
start: { character: 269, column: 1, line: 15 },
|
|
end: { character: 276, column: 8, line: 15 }
|
|
},
|
|
{
|
|
code: 'css-unused-selector',
|
|
frame: `
|
|
14: .a + .e { color: green; }
|
|
15: .b + .c { color: green; }
|
|
16: .c + .d { color: green; }
|
|
^
|
|
17: .b + .d { color: green; }
|
|
18: </style>`,
|
|
message: 'Unused CSS selector ".c + .d"',
|
|
pos: 296,
|
|
start: { character: 296, column: 1, line: 16 },
|
|
end: { character: 303, column: 8, line: 16 }
|
|
},
|
|
{
|
|
code: 'css-unused-selector',
|
|
frame: `
|
|
15: .b + .c { color: green; }
|
|
16: .c + .d { color: green; }
|
|
17: .b + .d { color: green; }
|
|
^
|
|
18: </style>
|
|
19:`,
|
|
message: 'Unused CSS selector ".b + .d"',
|
|
pos: 323,
|
|
start: { character: 323, column: 1, line: 17 },
|
|
end: { character: 330, column: 8, line: 17 }
|
|
}
|
|
]
|
|
};
|