@yoshinani/style-guide 0.8.0 → 0.10.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 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
  利用できる設定は以下の通りです。
@@ -68,7 +88,7 @@ export default eslintConfig
68
88
 
69
89
  | 種類 | 設定パッケージ名 |
70
90
  | ------------- | ------------------------------------------------- |
71
- | base | `@yoshinani/style-guide/typescript/base` |
91
+ | base | `@yoshinani/style-guide/typescript` |
72
92
  | nextjs | `@yoshinani/style-guide/typescript/nextjs` |
73
93
  | react-library | `@yoshinani/style-guide/typescript/react-library` |
74
94
 
package/cspell/words.txt CHANGED
@@ -5,6 +5,7 @@ liff
5
5
  mypage
6
6
  nakanoaas
7
7
  neverthrow
8
+ notionhq
8
9
  opengraph
9
10
  picklist
10
11
  postback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoshinani/style-guide",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
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
- "typescript",
24
- "eslint",
24
+ "biome",
25
25
  "commitlint",
26
+ "cspell",
27
+ "eslint",
26
28
  "prettier",
27
- "cspell"
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": "prettier --write ."
61
+ "format": "biome format --write ."
60
62
  }
61
63
  }