From 736f3f33827f83b254c17178c1757fa63fc9dac8 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 9 Jul 2024 14:36:58 +0200 Subject: [PATCH] Enable CSS formatter in Biome config --- biome.json | 9 +++++++++ sample/create-react-app-5/src/Sample.css | 5 +---- sample/next-app/app/Sample.css | 5 +---- sample/next-pages/pages/Sample.css | 5 +---- sample/parcel2/Sample.css | 5 +---- sample/vite/Sample.css | 5 +---- sample/webpack5/Sample.css | 5 +---- test/Test.css | 5 +---- 8 files changed, 16 insertions(+), 28 deletions(-) diff --git a/biome.json b/biome.json index 2ae842d58..02caffa10 100644 --- a/biome.json +++ b/biome.json @@ -17,6 +17,15 @@ } } }, + "css": { + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2, + "lineWidth": 100, + "quoteStyle": "single" + } + }, "javascript": { "formatter": { "quoteStyle": "single" diff --git a/sample/create-react-app-5/src/Sample.css b/sample/create-react-app-5/src/Sample.css index fcd6c299b..7681695f5 100644 --- a/sample/create-react-app-5/src/Sample.css +++ b/sample/create-react-app-5/src/Sample.css @@ -1,10 +1,7 @@ body { margin: 0; background-color: #525659; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Example input, diff --git a/sample/next-app/app/Sample.css b/sample/next-app/app/Sample.css index fcd6c299b..7681695f5 100644 --- a/sample/next-app/app/Sample.css +++ b/sample/next-app/app/Sample.css @@ -1,10 +1,7 @@ body { margin: 0; background-color: #525659; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Example input, diff --git a/sample/next-pages/pages/Sample.css b/sample/next-pages/pages/Sample.css index fcd6c299b..7681695f5 100644 --- a/sample/next-pages/pages/Sample.css +++ b/sample/next-pages/pages/Sample.css @@ -1,10 +1,7 @@ body { margin: 0; background-color: #525659; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Example input, diff --git a/sample/parcel2/Sample.css b/sample/parcel2/Sample.css index fcd6c299b..7681695f5 100644 --- a/sample/parcel2/Sample.css +++ b/sample/parcel2/Sample.css @@ -1,10 +1,7 @@ body { margin: 0; background-color: #525659; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Example input, diff --git a/sample/vite/Sample.css b/sample/vite/Sample.css index fcd6c299b..7681695f5 100644 --- a/sample/vite/Sample.css +++ b/sample/vite/Sample.css @@ -1,10 +1,7 @@ body { margin: 0; background-color: #525659; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Example input, diff --git a/sample/webpack5/Sample.css b/sample/webpack5/Sample.css index fcd6c299b..7681695f5 100644 --- a/sample/webpack5/Sample.css +++ b/sample/webpack5/Sample.css @@ -1,10 +1,7 @@ body { margin: 0; background-color: #525659; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Example input, diff --git a/test/Test.css b/test/Test.css index 895efbb8f..ba4af3037 100644 --- a/test/Test.css +++ b/test/Test.css @@ -1,9 +1,6 @@ body { margin: 0; - font-family: - Segoe UI, - Tahoma, - sans-serif; + font-family: Segoe UI, Tahoma, sans-serif; } .Test header {