@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.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +55 -59
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Yoshinani スタイルガイド
2
2
 
3
+ [![npm version](https://badge.fury.io/js/@yoshinani%2Fstyle-guide.svg)](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
- "name": "@yoshinani/style-guide",
3
- "version": "0.1.7",
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
- "@eslint/js": "^9.25.1",
32
- "eslint": "^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": "^5.8.3",
41
- "typescript-eslint": "^8.31.0"
42
- },
43
- "devDependencies": {
44
- "@commitlint/cli": "^19.8.0",
45
- "husky": "^9.1.7",
46
- "@commitlint/config-conventional": "19.8.0"
47
- },
48
- "peerDependencies": {
49
- "eslint": ">=9 <10",
50
- "@commitlint/config-conventional": "^19",
51
- "prettier": "^3"
52
- },
53
- "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
54
- "scripts": {
55
- "prepare": "husky"
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
+ }