Skip to content

Commit

Permalink
Enable CSS formatter in Biome config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 9, 2024
1 parent 67f22fd commit 736f3f3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 28 deletions.
9 changes: 9 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
}
}
},
"css": {
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100,
"quoteStyle": "single"
}
},
"javascript": {
"formatter": {
"quoteStyle": "single"
Expand Down
5 changes: 1 addition & 4 deletions sample/create-react-app-5/src/Sample.css
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 1 addition & 4 deletions sample/next-app/app/Sample.css
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 1 addition & 4 deletions sample/next-pages/pages/Sample.css
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 1 addition & 4 deletions sample/parcel2/Sample.css
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 1 addition & 4 deletions sample/vite/Sample.css
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 1 addition & 4 deletions sample/webpack5/Sample.css
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 1 addition & 4 deletions test/Test.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
body {
margin: 0;
font-family:
Segoe UI,
Tahoma,
sans-serif;
font-family: Segoe UI, Tahoma, sans-serif;
}

.Test header {
Expand Down

0 comments on commit 736f3f3

Please sign in to comment.