tailwind-ctp-intellisense/packages/tailwindcss-language-server/tests/diagnostics/css-conflict/simple.json

112 lines
3.3 KiB
JSON
Raw Permalink Normal View History

2023-08-29 09:37:51 +00:00
{
"code": "<div class=\"uppercase lowercase\"></div>",
"expected": [
{
"code": "cssConflict",
"className": {
"className": "uppercase",
"classList": {
"classList": "uppercase lowercase",
"range": {
"start": { "line": 0, "character": 12 },
"end": { "line": 0, "character": 31 }
}
},
"relativeRange": {
"start": { "line": 0, "character": 0 },
"end": { "line": 0, "character": 9 }
},
"range": { "start": { "line": 0, "character": 12 }, "end": { "line": 0, "character": 21 } }
},
"otherClassNames": [
{
"className": "lowercase",
"classList": {
"classList": "uppercase lowercase",
"range": {
"start": { "line": 0, "character": 12 },
"end": { "line": 0, "character": 31 }
}
},
"relativeRange": {
"start": { "line": 0, "character": 10 },
"end": { "line": 0, "character": 19 }
},
"range": {
"start": { "line": 0, "character": 22 },
"end": { "line": 0, "character": 31 }
}
}
],
"range": { "start": { "line": 0, "character": 12 }, "end": { "line": 0, "character": 21 } },
"severity": 2,
"message": "'uppercase' applies the same CSS properties as 'lowercase'.",
"relatedInformation": [
{
"message": "lowercase",
"location": {
"uri": "{{URI}}",
"range": {
"start": { "line": 0, "character": 22 },
"end": { "line": 0, "character": 31 }
}
}
}
]
},
{
"code": "cssConflict",
"className": {
"className": "lowercase",
"classList": {
"classList": "uppercase lowercase",
"range": {
"start": { "line": 0, "character": 12 },
"end": { "line": 0, "character": 31 }
}
},
"relativeRange": {
"start": { "line": 0, "character": 10 },
"end": { "line": 0, "character": 19 }
},
"range": { "start": { "line": 0, "character": 22 }, "end": { "line": 0, "character": 31 } }
},
"otherClassNames": [
{
"className": "uppercase",
"classList": {
"classList": "uppercase lowercase",
"range": {
"start": { "line": 0, "character": 12 },
"end": { "line": 0, "character": 31 }
}
},
"relativeRange": {
"start": { "line": 0, "character": 0 },
"end": { "line": 0, "character": 9 }
},
"range": {
"start": { "line": 0, "character": 12 },
"end": { "line": 0, "character": 21 }
}
}
],
"range": { "start": { "line": 0, "character": 22 }, "end": { "line": 0, "character": 31 } },
"severity": 2,
"message": "'lowercase' applies the same CSS properties as 'uppercase'.",
"relatedInformation": [
{
"message": "uppercase",
"location": {
"uri": "{{URI}}",
"range": {
"start": { "line": 0, "character": 12 },
"end": { "line": 0, "character": 21 }
}
}
}
]
}
]
}