@yoshinani/style-guide 0.14.0 → 0.14.2

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 +7 -23
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -163,34 +163,18 @@ pnpm commitlint --edit "$1"
163
163
 
164
164
  ## cspell
165
165
 
166
- 1. `cspell.config.mjs`を作成し以下のように記載します。
167
-
168
- ```js
169
- const dictPath =
170
- import.meta.dirname + "/node_modules/@yoshinani/style-guide/cspell/words.txt"
171
-
172
- export default {
173
- dictionaries: ["yoshinani-style-guide"],
174
- dictionaryDefinitions: [
175
- {
176
- name: "yoshinani-style-guide",
177
- path: dictPath,
178
- addWords: true,
179
- },
180
- ],
181
- }
182
- ```
183
-
184
- 2. vscode拡張での設定
166
+ `.vscode/cspell.json`を作成し以下のように記載します。
185
167
 
186
168
  ```json
187
169
  {
188
- "cSpell.customDictionaries": {
189
- "yoshinani": {
170
+ "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
171
+ "dictionaries": ["yoshinani"],
172
+ "dictionaryDefinitions": [
173
+ {
190
174
  "name": "yoshinani",
191
- "path": "${workspaceFolder}/node_modules/@yoshinani/style-guide/cspell/words.txt",
175
+ "path": "../node_modules/@yoshinani/style-guide/cspell/words.txt",
192
176
  "addWords": false
193
177
  }
194
- }
178
+ ]
195
179
  }
196
180
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoshinani/style-guide",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "YOSHINANI's Style Guide",
5
5
  "license": "MIT",
6
6
  "type": "module",