Skip to content

Commit

Permalink
feat: add css rules to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Aug 15, 2024
1 parent 93a0278 commit d5893fd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
26 changes: 25 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
"files": {
"ignore": ["**/dist/**", "**/storybook-static/**", "**/coverage/**"]
"ignore": [
"**/dist/**",
"**/storybook-static/**",
"**/coverage/**",
"**/.next/**"
]
},
"organizeImports": {
"enabled": true
},
"css": {
"formatter": {
"enabled": true
},
"linter": {
"enabled": true
}
},

"linter": {
"enabled": true,
"rules": {
"nursery": {
"useSortedClasses": {
"fix": "safe",
"level": "error",
"options": {
"attributes": ["classList"],
"functions": ["clsx", "cm", "cva", "tw"]
}
}
},
"all": true,
"style": {
"noDefaultExport": "off",
Expand Down
4 changes: 2 additions & 2 deletions src/Example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#example-button {
color: red;
font-size: 24px;
color: red;
font-size: 24px;
}

0 comments on commit d5893fd

Please sign in to comment.