Biome 로 테일윈드 클래스 저장시 자동정렬하기
biome.jsonc
- level을 error
- fix를 safe
"nursery": {
"useSortedClasses": {
"level": "error",
"fix": "safe",
"options": {
"attributes": [
"classList"
],
"functions": [
"clsx",
"cva",
"cn"
]
}
}
}
.vscode/settings.json
- editor.codeActionsOnSave에 아래 항목 추가
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
'TIL' 카테고리의 다른 글
[250927 TIL] Hasura(v2) + Next.js + Apollo 기본 (0) | 2025.09.27 |
---|---|
[250907 TIL] 실전적인 axios client 구성 (0) | 2025.09.07 |
[250807 TIL] CF Function + Next static build (2) | 2025.08.07 |
[250807 TIL] Hosts (1) | 2025.08.07 |
[250719 TIL] bcrypt 기본 (0) | 2025.07.19 |