@yoshinani/style-guide 0.11.0 → 0.12.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/biome/base.jsonc +45 -0
- package/cspell/words.txt +1 -0
- package/eslint/base.mjs +3 -3
- package/eslint/library.mjs +2 -1
- package/eslint/next.mjs +2 -1
- package/eslint/react-internal.mjs +2 -1
- package/package.json +11 -5
- package/biome.jsonc +0 -21
package/biome/base.jsonc
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../node_modules/@biomejs/biome/configuration_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": false,
|
|
19
|
+
"actions": {
|
|
20
|
+
"source": {
|
|
21
|
+
"organizeImports": {
|
|
22
|
+
"level": "on",
|
|
23
|
+
"options": {
|
|
24
|
+
"groups": [
|
|
25
|
+
// 標準ライブラリ・DenoのURLインポート('node:path' など)
|
|
26
|
+
[":NODE:", ":BUN:", ":URL:"],
|
|
27
|
+
":BLANK_LINE:",
|
|
28
|
+
// 外部のパッケージ('react' など)
|
|
29
|
+
[":PACKAGE:", ":PACKAGE_WITH_PROTOCOL:", "!@repo/**"],
|
|
30
|
+
":BLANK_LINE:",
|
|
31
|
+
// モノレポのパッケージ('@repo/ui' など)
|
|
32
|
+
"@repo/**",
|
|
33
|
+
":BLANK_LINE:",
|
|
34
|
+
// エイリアス('~/lib/firebase' など)
|
|
35
|
+
":ALIAS:",
|
|
36
|
+
":BLANK_LINE:",
|
|
37
|
+
// パス('./components/nav-bar' など)
|
|
38
|
+
":PATH:"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
package/cspell/words.txt
CHANGED
package/eslint/base.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
3
|
import eslint from "@eslint/js"
|
|
4
|
-
import tseslint from "typescript-eslint"
|
|
5
|
-
import * as importPlugin from "eslint-plugin-import"
|
|
6
4
|
import comments from "@eslint-community/eslint-plugin-eslint-comments"
|
|
7
|
-
import functional from "eslint-plugin-functional"
|
|
8
5
|
import eslintConfigPrettier from "eslint-config-prettier/flat"
|
|
6
|
+
import functional from "eslint-plugin-functional"
|
|
7
|
+
import * as importPlugin from "eslint-plugin-import"
|
|
8
|
+
import tseslint from "typescript-eslint"
|
|
9
9
|
|
|
10
10
|
export default tseslint.config(
|
|
11
11
|
eslint.configs.recommended,
|
package/eslint/library.mjs
CHANGED
package/eslint/next.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoshinani/style-guide",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Yoshinani's Style Guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=20",
|
|
9
|
+
"pnpm": ">=10"
|
|
10
|
+
},
|
|
7
11
|
"publishConfig": {
|
|
8
12
|
"access": "public",
|
|
9
13
|
"provenance": true
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
"url": "https://github.com/yoshinani-dev/style-guide.git"
|
|
18
22
|
},
|
|
19
23
|
"exports": {
|
|
20
|
-
"./biome": "./biome.jsonc",
|
|
24
|
+
"./biome": "./biome/base.jsonc",
|
|
21
25
|
"./commitlint": "./commitlint/commitlint.config.mjs",
|
|
22
26
|
"./eslint/*": "./eslint/*.mjs",
|
|
23
27
|
"./prettier": "./prettier/prettier.config.cjs",
|
|
@@ -26,7 +30,7 @@
|
|
|
26
30
|
"./typescript/react-library": "./typescript/react-library.json"
|
|
27
31
|
},
|
|
28
32
|
"files": [
|
|
29
|
-
"biome
|
|
33
|
+
"biome",
|
|
30
34
|
"commitlint",
|
|
31
35
|
"cspell",
|
|
32
36
|
"eslint",
|
|
@@ -47,12 +51,13 @@
|
|
|
47
51
|
"typescript-eslint": "^8.34.0"
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "2.1.
|
|
54
|
+
"@biomejs/biome": "^2.1.2",
|
|
51
55
|
"@changesets/cli": "^2.29.4",
|
|
52
56
|
"@commitlint/cli": "^19.8.1",
|
|
53
57
|
"husky": "^9.1.7"
|
|
54
58
|
},
|
|
55
59
|
"peerDependencies": {
|
|
60
|
+
"@biomejs/biome": "^2",
|
|
56
61
|
"@commitlint/cli": "^19",
|
|
57
62
|
"eslint": "^9",
|
|
58
63
|
"prettier": "^3",
|
|
@@ -60,6 +65,7 @@
|
|
|
60
65
|
},
|
|
61
66
|
"scripts": {
|
|
62
67
|
"release": "changeset publish",
|
|
63
|
-
"
|
|
68
|
+
"check": "biome check .",
|
|
69
|
+
"check:fix": "biome check --write ."
|
|
64
70
|
}
|
|
65
71
|
}
|
package/biome.jsonc
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@biomejs/biome/configuration_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
|
-
}
|