@hyeon/linter 11.0.2 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/biome.jsonc +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ VS Code Biome 확장에서 `Request textDocument/codeAction failed` 또는 `fail
|
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
설치 후 biome check --write . 로 전체 포맷을 적용해줘.
|
|
80
|
-
`useOptionalChain`처럼 Biome이 unsafe fix로 분류한 수정까지 적용해야 하면 biome check --write --unsafe . 를 별도로 실행해줘.
|
|
80
|
+
`useSortedClasses` Tailwind class 정렬과 `useOptionalChain`처럼 Biome이 unsafe fix로 분류한 수정까지 적용해야 하면 biome check --write --unsafe . 를 별도로 실행해줘.
|
|
81
81
|
````
|
|
82
82
|
|
|
83
83
|
|
|
@@ -87,6 +87,8 @@ VS Code Biome 확장에서 `Request textDocument/codeAction failed` 또는 `fail
|
|
|
87
87
|
- Biome 기반 (lint + format + import organize 단일 도구)
|
|
88
88
|
- ESLint/Prettier 레거시 경로는 v11에서 완전 제거됨
|
|
89
89
|
- Tailwind CSS v4의 `@theme`, `@utility` 같은 CSS 지시문은 기본 설정에서 파싱 가능
|
|
90
|
+
- Tailwind CSS class 정렬은 `useSortedClasses`를 기본 `error`로 활성화하며, `clsx`/`cva`/`cn`/`tw` 계열 함수 문자열도 검사
|
|
91
|
+
- Tailwind class 정렬 적용은 Biome unsafe fix에 해당하므로 `lint:fix:unsafe` 또는 `biome check --write --unsafe .` 사용
|
|
90
92
|
|
|
91
93
|
## 왜 Biome인가
|
|
92
94
|
|
package/biome.jsonc
CHANGED
|
@@ -26,7 +26,14 @@
|
|
|
26
26
|
"noUnusedImports": "error",
|
|
27
27
|
"noEmptyPattern": "off"
|
|
28
28
|
},
|
|
29
|
-
"nursery": {
|
|
29
|
+
"nursery": {
|
|
30
|
+
"useSortedClasses": {
|
|
31
|
+
"level": "error",
|
|
32
|
+
"options": {
|
|
33
|
+
"functions": ["clsx", "cva", "cn", "tw", "tw.*"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
30
37
|
}
|
|
31
38
|
},
|
|
32
39
|
"formatter": {
|