@yoshinani/style-guide 0.1.7 → 0.1.8

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 +21 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,6 +10,7 @@
10
10
  - [ESLint](#eslint)
11
11
  - [TypeScript](#typescript)
12
12
  - [commitlint](#commitlint)
13
+ - [cspell](#cspell)
13
14
 
14
15
  ## コントリビュートについて
15
16
 
@@ -113,3 +114,23 @@ pnpm add -D husky
113
114
 
114
115
  pnpm commitlint --edit "$1"
115
116
  ```
117
+
118
+ ## cspell
119
+
120
+ 1. `cspell.config.mjs`を作成し以下のように記載します。
121
+
122
+ ```js
123
+ const dictPath =
124
+ import.meta.dirname + "/node_modules/@yoshinani/style-guide/cspell/words.txt"
125
+
126
+ export default {
127
+ dictionaries: ["yoshinani-style-guide"],
128
+ dictionaryDefinitions: [
129
+ {
130
+ name: "yoshinani-style-guide",
131
+ path: dictPath,
132
+ addWords: true,
133
+ },
134
+ ],
135
+ }
136
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoshinani/style-guide",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Yoshinani's Style Guide",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/yoshinani-dev/style-guide#readme",