Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use lowercase, one-word form for diagnostic source
  • Loading branch information
thecrypticace committed Nov 4, 2025
commit 18d16a87472f6ee6fa3c7a92fc1a75cdd2038b32
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"diagnostics": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "lowercase",
"classList": {
Expand Down Expand Up @@ -86,7 +86,7 @@
"diagnostics": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "uppercase",
"classList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"diagnostics": [
{
"code": "invalidScreen",
"source": "Tailwind CSS",
"source": "tailwindcss",
"range": {
"start": { "line": 0, "character": 8 },
"end": { "line": 0, "character": 13 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"diagnostics": [
{
"code": "invalidConfigPath",
"source": "Tailwind CSS",
"source": "tailwindcss",
"range": {
"start": { "line": 0, "character": 21 },
"end": { "line": 0, "character": 35 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"diagnostics": [
{
"code": "invalidVariant",
"source": "Tailwind CSS",
"source": "tailwindcss",
"range": {
"start": { "line": 0, "character": 10 },
"end": { "line": 0, "character": 16 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"diagnostics": [
{
"code": "recommendedVariantOrder",
"source": "Tailwind CSS",
"source": "tailwindcss",
"suggestions": ["focus:hover:uppercase"],
"range": {
"start": { "line": 0, "character": 12 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"expected": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "uppercase",
"classList": {
Expand Down Expand Up @@ -60,7 +60,7 @@
},
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "lowercase",
"classList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"expected": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "lowercase",
"classList": {
Expand Down Expand Up @@ -58,7 +58,7 @@
},
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "uppercase",
"classList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"expected": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "uppercase",
"classList": {
Expand Down Expand Up @@ -57,7 +57,7 @@
},
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "lowercase",
"classList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"expected": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "sm:uppercase",
"classList": {
Expand Down Expand Up @@ -57,7 +57,7 @@
},
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "sm:lowercase",
"classList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"expected": [
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "uppercase",
"classList": {
Expand Down Expand Up @@ -60,7 +60,7 @@
},
{
"code": "cssConflict",
"source": "Tailwind CSS",
"source": "tailwindcss",
"className": {
"className": "lowercase",
"classList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ withFixture('v4/basic', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 36 } },
severity: 1,
message: "'--color-red-901' does not exist in your theme. Did you mean '--color-red-900'?",
Expand All @@ -110,7 +110,7 @@ withFixture('v4/basic', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 37 } },
severity: 1,
message: "'--colors-red-901' does not exist in your theme. Did you mean '--color-red-900'?",
Expand All @@ -125,7 +125,7 @@ withFixture('v4/basic', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 42 } },
severity: 1,
message: "'--font-obliqueness-90' does not exist in your theme.",
Expand All @@ -146,7 +146,7 @@ withFixture('v4/basic', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 35 } },
severity: 1,
message: "'colors.red.901' does not exist in your theme config.",
Expand Down Expand Up @@ -198,7 +198,7 @@ withFixture('v4/with-prefix', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 36 } },
severity: 1,
message: "'--color-red-901' does not exist in your theme. Did you mean '--color-red-900'?",
Expand All @@ -213,7 +213,7 @@ withFixture('v4/with-prefix', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 37 } },
severity: 1,
message: "'--colors-red-901' does not exist in your theme. Did you mean '--color-red-900'?",
Expand All @@ -228,7 +228,7 @@ withFixture('v4/with-prefix', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 42 } },
severity: 1,
message: "'--font-obliqueness-90' does not exist in your theme.",
Expand All @@ -249,7 +249,7 @@ withFixture('v4/with-prefix', (c) => {
expected: [
{
code: 'invalidConfigPath',
source: 'Tailwind CSS',
source: 'tailwindcss',
range: { start: { line: 0, character: 21 }, end: { line: 0, character: 35 } },
severity: 1,
message: "'colors.red.901' does not exist in your theme config.",
Expand Down Expand Up @@ -288,7 +288,7 @@ withFixture('v4/basic', (c) => {
expected: [
{
code: 'cssConflict',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: "'max-w-4xl' applies the same CSS properties as 'max-w-6xl'.",
className: {
className: 'max-w-4xl',
Expand All @@ -307,7 +307,7 @@ withFixture('v4/basic', (c) => {
},
{
code: 'cssConflict',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: "'max-w-6xl' applies the same CSS properties as 'max-w-4xl'.",
className: {
className: 'max-w-6xl',
Expand Down Expand Up @@ -339,7 +339,7 @@ withFixture('v4/basic', (c) => {
expected: [
{
code: 'invalidTailwindDirective',
source: 'Tailwind CSS',
source: 'tailwindcss',
message:
"'@tailwind base' is no longer available in v4. Use '@import \"tailwindcss/preflight\"' instead.",
suggestions: [],
Expand All @@ -351,7 +351,7 @@ withFixture('v4/basic', (c) => {
},
{
code: 'invalidTailwindDirective',
source: 'Tailwind CSS',
source: 'tailwindcss',
message:
"'@tailwind preflight' is no longer available in v4. Use '@import \"tailwindcss/preflight\"' instead.",
suggestions: [],
Expand All @@ -363,7 +363,7 @@ withFixture('v4/basic', (c) => {
},
{
code: 'invalidTailwindDirective',
source: 'Tailwind CSS',
source: 'tailwindcss',
message:
"'@tailwind components' is no longer available in v4. Use '@tailwind utilities' instead.",
suggestions: ['utilities'],
Expand All @@ -375,7 +375,7 @@ withFixture('v4/basic', (c) => {
},
{
code: 'invalidTailwindDirective',
source: 'Tailwind CSS',
source: 'tailwindcss',
message:
"'@tailwind screens' is no longer available in v4. Use '@tailwind utilities' instead.",
suggestions: ['utilities'],
Expand All @@ -387,7 +387,7 @@ withFixture('v4/basic', (c) => {
},
{
code: 'invalidTailwindDirective',
source: 'Tailwind CSS',
source: 'tailwindcss',
message:
"'@tailwind variants' is no longer available in v4. Use '@tailwind utilities' instead.",
suggestions: ['utilities'],
Expand Down Expand Up @@ -421,7 +421,7 @@ defineTest({
expect(diagnostics).toEqual([
{
code: 'usedBlocklistedClass',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: 'The class "flex" will not be generated as it has been blocklisted',
range: {
start: { line: 0, character: 12 },
Expand All @@ -431,7 +431,7 @@ defineTest({
},
{
code: 'usedBlocklistedClass',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: 'The class "hover:flex" will not be generated as it has been blocklisted',
range: {
start: { line: 0, character: 27 },
Expand Down Expand Up @@ -480,7 +480,7 @@ defineTest({
expect(diagnostics).toEqual([
{
code: 'suggestCanonicalClasses',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: 'The class `[@media_print]:flex` can be written as `print:flex`',
range: {
start: { line: 0, character: 12 },
Expand All @@ -491,7 +491,7 @@ defineTest({
},
{
code: 'suggestCanonicalClasses',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: 'The class `[color:red]/50` can be written as `text-[red]/50`',
range: {
start: { line: 0, character: 32 },
Expand All @@ -502,7 +502,7 @@ defineTest({
},
{
code: 'suggestCanonicalClasses',
source: 'Tailwind CSS',
source: 'tailwindcss',
message: 'The class `mt-[16px]` can be written as `mt-4`',
range: {
start: { line: 0, character: 47 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"expected": [
{
"code": "invalidScreen",
"source": "Tailwind CSS",
"source": "tailwindcss",
"range": { "start": { "line": 0, "character": 8 }, "end": { "line": 0, "character": 13 } },
"severity": 1,
"message": "The screen 'small' does not exist in your theme config. Did you mean 'sm'?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"expected": [
{
"code": "invalidConfigPath",
"source": "Tailwind CSS",
"source": "tailwindcss",
"range": { "start": { "line": 0, "character": 21 }, "end": { "line": 0, "character": 35 } },
"severity": 1,
"message": "'colors.red.901' does not exist in your theme config. Did you mean 'colors.red.900'?",
Expand Down
Loading