@yoshinani/style-guide 0.1.7 → 0.1.9
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 +23 -0
- package/package.json +55 -59
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Yoshinani スタイルガイド
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/js/@yoshinani%2Fstyle-guide)
|
|
4
|
+
|
|
3
5
|
## はじめに
|
|
4
6
|
|
|
5
7
|
このリポジトリは、Yoshinani のスタイルガイドのホームであり、人気のあるリンティングやスタイリングツール用の設定を含んでいます。
|
|
@@ -10,6 +12,7 @@
|
|
|
10
12
|
- [ESLint](#eslint)
|
|
11
13
|
- [TypeScript](#typescript)
|
|
12
14
|
- [commitlint](#commitlint)
|
|
15
|
+
- [cspell](#cspell)
|
|
13
16
|
|
|
14
17
|
## コントリビュートについて
|
|
15
18
|
|
|
@@ -113,3 +116,23 @@ pnpm add -D husky
|
|
|
113
116
|
|
|
114
117
|
pnpm commitlint --edit "$1"
|
|
115
118
|
```
|
|
119
|
+
|
|
120
|
+
## cspell
|
|
121
|
+
|
|
122
|
+
1. `cspell.config.mjs`を作成し以下のように記載します。
|
|
123
|
+
|
|
124
|
+
```js
|
|
125
|
+
const dictPath =
|
|
126
|
+
import.meta.dirname + "/node_modules/@yoshinani/style-guide/cspell/words.txt"
|
|
127
|
+
|
|
128
|
+
export default {
|
|
129
|
+
dictionaries: ["yoshinani-style-guide"],
|
|
130
|
+
dictionaryDefinitions: [
|
|
131
|
+
{
|
|
132
|
+
name: "yoshinani-style-guide",
|
|
133
|
+
path: dictPath,
|
|
134
|
+
addWords: true,
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
}
|
|
138
|
+
```
|
package/package.json
CHANGED
|
@@ -1,60 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
2
|
+
"name": "@yoshinani/style-guide",
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"description": "Yoshinani's Style Guide",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/yoshinani-dev/style-guide#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/yoshinani-dev/style-guide/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/yoshinani-dev/style-guide.git"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
"./typescript": "./typescript/base.json",
|
|
16
|
+
"./typescript/nextjs": "./typescript/nextjs.json",
|
|
17
|
+
"./typescript/react-library": "./typescript/react-library.json",
|
|
18
|
+
"./eslint/*": "./eslint/*.mjs",
|
|
19
|
+
"./commitlint": "./commitlint/commitlint.config.mjs",
|
|
20
|
+
"./prettier": "./prettier/prettier.config.cjs"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"typescript",
|
|
24
|
+
"eslint",
|
|
25
|
+
"commitlint",
|
|
26
|
+
"prettier",
|
|
27
|
+
"cspell"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
31
|
+
"@commitlint/config-conventional": "^19",
|
|
32
|
+
"@eslint/js": "^9.25.1",
|
|
33
|
+
"eslint-config-prettier": "^10.1.2",
|
|
34
|
+
"eslint-plugin-functional": "^9.0.1",
|
|
35
|
+
"eslint-plugin-import": "^2.31.0",
|
|
36
|
+
"eslint-plugin-react": "^7.37.5",
|
|
37
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
38
|
+
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
39
|
+
"globals": "^16.0.0",
|
|
40
|
+
"typescript-eslint": "^8.31.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@commitlint/cli": "^19.8.0",
|
|
44
|
+
"husky": "^9.1.7"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"eslint": "^9",
|
|
48
|
+
"prettier": "^3",
|
|
49
|
+
"typescript": "^5",
|
|
50
|
+
"@commitlint/cli": "^19"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {}
|
|
56
|
+
}
|