@yoshinani/style-guide 0.18.0 → 1.0.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 +1 -11
- package/biome/base.jsonc +1 -1
- package/eslint/base.mjs +0 -18
- package/package.json +1 -4
- package/prettier/prettier.config.cjs +0 -17
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
以下の設定が利用可能で、組み合わせて使うことを想定しています。
|
|
10
10
|
|
|
11
|
-
- [
|
|
11
|
+
- [Biome](#biome)
|
|
12
12
|
- [ESLint](#eslint)
|
|
13
13
|
- [TypeScript](#typescript)
|
|
14
14
|
- [commitlint](#commitlint)
|
|
@@ -33,16 +33,6 @@ pnpm i --save-dev @yoshinani/style-guide
|
|
|
33
33
|
yarn add --dev @yoshinani/style-guide
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
## Prettier
|
|
37
|
-
|
|
38
|
-
共有 Prettier 設定を使うには、`package.json` に以下を追加してください。
|
|
39
|
-
|
|
40
|
-
```json
|
|
41
|
-
{
|
|
42
|
-
"prettier": "@yoshinani/style-guide/prettier"
|
|
43
|
-
}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
36
|
## Biome
|
|
47
37
|
|
|
48
38
|
現在、この設定ではBiomeのフォーマッター機能のみを有効にしています。リンターとしては、別途 [ESLint](#eslint) を設定してください。
|
package/biome/base.jsonc
CHANGED
package/eslint/base.mjs
CHANGED
|
@@ -83,24 +83,6 @@ export default tseslint.config(
|
|
|
83
83
|
"error",
|
|
84
84
|
{ ignore: [] },
|
|
85
85
|
],
|
|
86
|
-
// sort import statements
|
|
87
|
-
"import/order": [
|
|
88
|
-
"warn",
|
|
89
|
-
{
|
|
90
|
-
groups: [
|
|
91
|
-
"builtin",
|
|
92
|
-
"external",
|
|
93
|
-
"internal",
|
|
94
|
-
"parent",
|
|
95
|
-
"sibling",
|
|
96
|
-
"index",
|
|
97
|
-
],
|
|
98
|
-
"newlines-between": "always",
|
|
99
|
-
alphabetize: { order: "asc" },
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
// sort named imports within an import statement
|
|
103
|
-
"sort-imports": ["warn", { ignoreDeclarationSort: true }],
|
|
104
86
|
"no-restricted-syntax": [
|
|
105
87
|
"error",
|
|
106
88
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoshinani/style-guide",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "YOSHINANI's Style Guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"./biome": "./biome/base.jsonc",
|
|
25
25
|
"./commitlint": "./commitlint/commitlint.config.mjs",
|
|
26
26
|
"./eslint/*": "./eslint/*.mjs",
|
|
27
|
-
"./prettier": "./prettier/prettier.config.cjs",
|
|
28
27
|
"./typescript": "./typescript/base.json",
|
|
29
28
|
"./typescript/nextjs": "./typescript/nextjs.json",
|
|
30
29
|
"./typescript/react-library": "./typescript/react-library.json"
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
"commitlint",
|
|
35
34
|
"cspell",
|
|
36
35
|
"eslint",
|
|
37
|
-
"prettier",
|
|
38
36
|
"typescript"
|
|
39
37
|
],
|
|
40
38
|
"dependencies": {
|
|
@@ -62,7 +60,6 @@
|
|
|
62
60
|
"@biomejs/biome": "^2",
|
|
63
61
|
"@commitlint/cli": "^20",
|
|
64
62
|
"eslint": "^9",
|
|
65
|
-
"prettier": "^3",
|
|
66
63
|
"typescript": "^5"
|
|
67
64
|
},
|
|
68
65
|
"scripts": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @see https://prettier.io/docs/configuration
|
|
5
|
-
* @type {import("prettier").Config}
|
|
6
|
-
*/
|
|
7
|
-
const config = {
|
|
8
|
-
endOfLine: "lf",
|
|
9
|
-
tabWidth: 2,
|
|
10
|
-
printWidth: 80,
|
|
11
|
-
useTabs: false,
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
semi: false,
|
|
14
|
-
trailingComma: "all",
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
module.exports = config
|