Skip to content

Commit d5893fd

Browse files
committed
feat: add css rules to biome
1 parent 93a0278 commit d5893fd

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

biome.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
33
"files": {
4-
"ignore": ["**/dist/**", "**/storybook-static/**", "**/coverage/**"]
4+
"ignore": [
5+
"**/dist/**",
6+
"**/storybook-static/**",
7+
"**/coverage/**",
8+
"**/.next/**"
9+
]
510
},
611
"organizeImports": {
712
"enabled": true
813
},
14+
"css": {
15+
"formatter": {
16+
"enabled": true
17+
},
18+
"linter": {
19+
"enabled": true
20+
}
21+
},
22+
923
"linter": {
1024
"enabled": true,
1125
"rules": {
26+
"nursery": {
27+
"useSortedClasses": {
28+
"fix": "safe",
29+
"level": "error",
30+
"options": {
31+
"attributes": ["classList"],
32+
"functions": ["clsx", "cm", "cva", "tw"]
33+
}
34+
}
35+
},
1236
"all": true,
1337
"style": {
1438
"noDefaultExport": "off",

src/Example.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#example-button {
2-
color: red;
3-
font-size: 24px;
2+
color: red;
3+
font-size: 24px;
44
}

0 commit comments

Comments
 (0)