@yoshinani/style-guide 0.9.0 → 0.10.1
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 +20 -0
- package/biome.jsonc +21 -0
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -43,6 +43,26 @@ yarn add --dev @yoshinani/style-guide
|
|
|
43
43
|
}
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
## Biome
|
|
47
|
+
|
|
48
|
+
共有のBiome設定を利用するには、`biome.jsonc` を作成して、以下のように `extends` を設定します。
|
|
49
|
+
|
|
50
|
+
```jsonc
|
|
51
|
+
{
|
|
52
|
+
"extends": ["@yoshinani/style-guide/biome"]
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
VSCodeでフォーマッターとしてBiomeを利用する場合は、 `.vscode/settings.json` に以下の設定を追加してください。
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"biome.enabled": true,
|
|
61
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
62
|
+
"editor.formatOnSave": true
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
46
66
|
## ESLint
|
|
47
67
|
|
|
48
68
|
利用できる設定は以下の通りです。
|
package/biome.jsonc
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
|
|
3
|
+
"formatter": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"indentStyle": "space"
|
|
6
|
+
},
|
|
7
|
+
"javascript": {
|
|
8
|
+
"formatter": {
|
|
9
|
+
"semicolons": "asNeeded",
|
|
10
|
+
"quoteStyle": "double"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"linter": {
|
|
14
|
+
"enabled": false
|
|
15
|
+
},
|
|
16
|
+
"html": { "formatter": { "selfCloseVoidElements": "always" } },
|
|
17
|
+
"assist": {
|
|
18
|
+
"enabled": true,
|
|
19
|
+
"actions": { "source": { "organizeImports": "off" } }
|
|
20
|
+
}
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoshinani/style-guide",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Yoshinani's Style Guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/yoshinani-dev/style-guide#readme",
|
|
@@ -17,14 +17,16 @@
|
|
|
17
17
|
"./typescript/react-library": "./typescript/react-library.json",
|
|
18
18
|
"./eslint/*": "./eslint/*.mjs",
|
|
19
19
|
"./commitlint": "./commitlint/commitlint.config.mjs",
|
|
20
|
-
"./prettier": "./prettier/prettier.config.cjs"
|
|
20
|
+
"./prettier": "./prettier/prettier.config.cjs",
|
|
21
|
+
"./biome": "./biome.jsonc"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
|
-
"
|
|
24
|
-
"eslint",
|
|
24
|
+
"biome.jsonc",
|
|
25
25
|
"commitlint",
|
|
26
|
+
"cspell",
|
|
27
|
+
"eslint",
|
|
26
28
|
"prettier",
|
|
27
|
-
"
|
|
29
|
+
"typescript"
|
|
28
30
|
],
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"@commitlint/config-conventional": "^19.8.1",
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
"typescript-eslint": "^8.34.0"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
45
|
+
"@biomejs/biome": "2.1.1",
|
|
43
46
|
"@changesets/cli": "^2.29.4",
|
|
44
47
|
"@commitlint/cli": "^19.8.1",
|
|
45
48
|
"husky": "^9.1.7"
|
|
@@ -53,9 +56,8 @@
|
|
|
53
56
|
"publishConfig": {
|
|
54
57
|
"access": "public"
|
|
55
58
|
},
|
|
56
|
-
"prettier": "./prettier/prettier.config.cjs",
|
|
57
59
|
"scripts": {
|
|
58
60
|
"release": "changeset publish",
|
|
59
|
-
"format": "
|
|
61
|
+
"format": "biome format --write ."
|
|
60
62
|
}
|
|
61
63
|
}
|