@bubbly-lab/biome-config 1.0.0 → 1.1.0
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 +26 -0
- package/base.json +25 -10
- package/package.json +4 -3
- package/react.json +29 -0
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
# @bubbly-lab/biome-config
|
|
2
2
|
|
|
3
3
|
Bubbly Lab에서 사용하는 Biome 설정입니다.
|
|
4
|
+
|
|
5
|
+
## 사용법
|
|
6
|
+
|
|
7
|
+
- 기본 설정: `@bubbly-lab/biome-config/base.json`을 `extends`에 추가합니다.
|
|
8
|
+
- React/Tailwind 프로젝트: `@bubbly-lab/biome-config/react.json`을 `extends`에 추가합니다.
|
|
9
|
+
|
|
10
|
+
```json
|
|
11
|
+
{
|
|
12
|
+
"extends": ["@bubbly-lab/biome-config/react.json"]
|
|
13
|
+
}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 설정 파일 작성 팁
|
|
17
|
+
|
|
18
|
+
- 아래의 키 순서를 따르는 것을 컨벤션으로 합니다:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
$schema
|
|
22
|
+
extends
|
|
23
|
+
vcs
|
|
24
|
+
files
|
|
25
|
+
assist
|
|
26
|
+
formatter
|
|
27
|
+
linter
|
|
28
|
+
{language specified rules - alphabetized order}
|
|
29
|
+
```
|
package/base.json
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.6/schema.json",
|
|
3
3
|
"vcs": {
|
|
4
4
|
"enabled": true,
|
|
5
5
|
"clientKind": "git",
|
|
6
6
|
"useIgnoreFile": true
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
|
-
"ignoreUnknown": true
|
|
9
|
+
"ignoreUnknown": true,
|
|
10
|
+
"includes": ["**", "!**/build", "!**/dist", "!**/generated"]
|
|
11
|
+
},
|
|
12
|
+
"assist": {
|
|
13
|
+
"enabled": true,
|
|
14
|
+
"actions": {
|
|
15
|
+
"source": {
|
|
16
|
+
"organizeImports": {
|
|
17
|
+
"level": "on",
|
|
18
|
+
"options": {
|
|
19
|
+
"groups": [
|
|
20
|
+
":URL:",
|
|
21
|
+
":BLANK_LINE:",
|
|
22
|
+
[":BUN:", ":NODE:", ":PACKAGE:", ":PACKAGE_WITH_PROTOCOL:"],
|
|
23
|
+
":BLANK_LINE:",
|
|
24
|
+
":ALIAS:",
|
|
25
|
+
":BLANK_LINE:",
|
|
26
|
+
":PATH:"
|
|
27
|
+
],
|
|
28
|
+
"identifierOrder": "natural"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
10
33
|
},
|
|
11
34
|
"formatter": {
|
|
12
35
|
"enabled": true,
|
|
@@ -25,13 +48,5 @@
|
|
|
25
48
|
"quoteStyle": "single",
|
|
26
49
|
"trailingCommas": "all"
|
|
27
50
|
}
|
|
28
|
-
},
|
|
29
|
-
"assist": {
|
|
30
|
-
"enabled": true,
|
|
31
|
-
"actions": {
|
|
32
|
-
"source": {
|
|
33
|
-
"organizeImports": "on"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
51
|
}
|
|
37
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubbly-lab/biome-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "biome config for bubbly lab",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bubbly-lab",
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
"author": "@bubbly-lab/dev",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"exports": {
|
|
20
|
-
"./base.json": "./base.json"
|
|
20
|
+
"./base.json": "./base.json",
|
|
21
|
+
"./react.json": "./react.json"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
|
-
"@biomejs/biome": "
|
|
24
|
+
"@biomejs/biome": "2.3.6"
|
|
24
25
|
}
|
|
25
26
|
}
|
package/react.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.6/schema.json",
|
|
3
|
+
"extends": ["./base.json"],
|
|
4
|
+
"linter": {
|
|
5
|
+
"rules": {
|
|
6
|
+
"style": {
|
|
7
|
+
"useImportType": {
|
|
8
|
+
"level": "error",
|
|
9
|
+
"options": {
|
|
10
|
+
"style": "auto"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"suspicious": {
|
|
15
|
+
"useIterableCallbackReturn": "off"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"css": {
|
|
20
|
+
"parser": {
|
|
21
|
+
"tailwindDirectives": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"javascript": {
|
|
25
|
+
"formatter": {
|
|
26
|
+
"jsxQuoteStyle": "single"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|