@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.
- package/README.md +7 -23
- 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
|
-
|
|
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
|
-
"
|
|
189
|
-
|
|
170
|
+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
|
|
171
|
+
"dictionaries": ["yoshinani"],
|
|
172
|
+
"dictionaryDefinitions": [
|
|
173
|
+
{
|
|
190
174
|
"name": "yoshinani",
|
|
191
|
-
"path": "
|
|
175
|
+
"path": "../node_modules/@yoshinani/style-guide/cspell/words.txt",
|
|
192
176
|
"addWords": false
|
|
193
177
|
}
|
|
194
|
-
|
|
178
|
+
]
|
|
195
179
|
}
|
|
196
180
|
```
|