-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.json
354 lines (292 loc) · 10.9 KB
/
settings.json
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
{
// ---------------------------------------------------------------------------
// Default Configuration Overrides
// ---------------------------------------------------------------------------
// See https://code.visualstudio.com/docs/getstarted/settings
// for the documentation about the extensions.json format.
// Editor
//////////////////////////////////////////////////////////////////////////////
"editor.codeLens": true,
"editor.formatOnSave": true,
// Auto-fix JS files with ESLint using our custom settings. Needs
// https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[json5]": {
"editor.formatOnSave": true
},
"json.maxItemsComputed": 10000,
// Insert spaces when pressing `Tab`. This setting is overridden based on the
// file contents when `editor.detectIndentation` is on.
"editor.insertSpaces": false,
// The number of spaces a tab is equal to. This setting is overridden based
// on the file contents when `editor.detectIndentation` is on.
"editor.tabSize": 4,
"editor.wordWrap": "off",
// ---------------------------------------------------------------------------
"[javascript][json][json5][typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[liquid]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "sissel.shopify-liquid"
},
"[toml]": {
"editor.codeActionsOnSave": {
"source.fixAll.dprint": "explicit"
},
"editor.defaultFormatter": "dprint.dprint"
},
"[markdown]": {
"editor.codeActionsOnSave": {
"source.fixAll.markdownlint": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
// "editor.defaultFormatter": "unifiedjs.vscode-remark"
// "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
"[svg]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Render vertical rulers after a certain number of monospace characters.
"editor.rulers": [50, 72, 80, 100], // Uses multiple values for multiple rulers.
// Terminal
// The Linux profiles to present when creating a new terminal via the
// terminal dropdown. When set, these will override the default detected
// profiles. They are comprised of a `path` and optional `args`.
//////////////////////////////////////////////////////////////////////////////
// A set of terminal profile customizations for Linux that allows adding,
// removing, or changing how terminals are launched. Profiles are comprised of
// a mandatory `path` and optional `args`, and other presentation options.
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
},
"zsh": {
"path": "zsh"
},
"fish": {
"path": "fish"
},
"tmux": {
"path": "tmux",
"icon": "terminal-tmux"
},
"pwsh": null
},
// The default terminal profile on Linux.
"terminal.integrated.defaultProfile.linux": "fish",
// A set of terminal profile customizations for macOS which allows adding,
// removing, or changing how terminals are launched. Profiles are comprised of
// a mandatory `path` and optional `args`, and other presentation options.
"terminal.integrated.profiles.osx": {
"bash": {
"path": "bash"
},
"zsh": {
"path": "zsh"
},
"fish": {
"path": "fish"
}
},
// The default terminal profile on macOS.
"terminal.integrated.defaultProfile.osx": "fish",
// Controls whether or not WSL distros are shown in the terminal dropdown.
// Not actually recommended, but useful one-offs if that may be the case.
"terminal.integrated.useWslProfiles": true,
// A set of terminal profile customizations for Windows which allows adding,
// removing, or changing how terminals are launched. Profiles are comprised of
// a mandatory `path` and optional `args`, and other presentation options.
"terminal.integrated.profiles.windows": {
"Git Bash": null,
"pwsh": {
"path": "pwsh.exe",
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"icon": "terminal-cmd"
}
},
// The default terminal profile on Windows.
"terminal.integrated.defaultProfile.windows": "pwsh",
// Controls whether the terminal will ignore bracketed paste mode even if the
// terminal was put into the mode, omitting the `\x1b[200~` and `\x1b[201~`
// sequences when pasting. This is useful when the shell is not respecting the
// mode which can happen in sub-shells for example.
"terminal.integrated.ignoreBracketedPasteMode": true,
// Controls the working directory a split terminal starts with.
// - workspaceRoot: A new split terminal will use the workspace root as the
// working directory. In a multi-root workspace a choice for which root
// folder to use is offered.
// - initial: A new split terminal will use the working directory that the
// parent terminal started with.
// - inherited: On macOS and Linux, a new split terminal will use the working
// directory of the parent terminal. On Windows, this behaves the same as
// initial.
"terminal.integrated.splitCwd": "workspaceRoot",
// Automatic script injection has been disabled.
"terminal.integrated.shellIntegration.enabled": false,
// ---------------------------------------------------------------------------
// Files
//////////////////////////////////////////////////////////////////////////////
"files.associations": {
".devcontainer/*.json": "jsonc",
".vscode/*.json": "jsonc",
"tsconfig.*.json": "jsonc",
"tsconfig.json": "jsonc",
".ecrc.json": "json",
".eslintrc.json": "jsonc",
".prettierrc.json": "json5",
".prettierrc.json5": "json5",
".deepsource.toml": "toml",
".renovaterc.json5": "json5",
".snyk": "yaml",
".html": "liquid"
},
// Configure glob patterns for excluding files and folders. For example, the
// files explorer decides which files and folders to show or hide based on
// this setting. Read more about glob patterns [here][].
// [here]:https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options
"files.exclude": {
"!**/node_modules/": true,
".git": false,
"**/.DS_Store": true
},
// Configure glob patterns for excluding files and folders in searches.
// Inherits all glob patterns from the `files.exclude` setting.
"search.exclude": {
"!**/node_modules": true,
"**/node_modules": false
},
// The default character set encoding to use when reading and writing files.
// This setting can also be configured per language.
"files.encoding": "utf8",
// The default end of line character.
// - \n: LF
// - \r\n: CRLF
// - auto: Uses operating system specific end of line character.
"files.eol": "auto",
// When enabled, insert a final new line at the end of the file when saving
// it.
"files.insertFinalNewline": true,
// When enabled, will trim trailing whitespace when saving a file.
// Extension: EditorConfig known issue: trim_trailing_whitespace = false is
// not applied when user/workspace setting of files.trimTrailingWhitespace is
// set to true.
"files.trimTrailingWhitespace": false,
// Git
//////////////////////////////////////////////////////////////////////////////
// Ignores the warning when there are too many changes in a repository.
"git.ignoreLimitWarning": true,
// JavaScript/TypeScript
//////////////////////////////////////////////////////////////////////////////
// Disable JS/TS validation. (These should be handled by ESLint.)
"javascript.validate.enable": false,
"typescript.validate.enable": false,
"typescript.tsdk": "node_modules/typescript/lib",
"javascript.preferences.autoImportFileExcludePatterns": [
"**/node_modules/@types/node"
],
"typescript.preferences.autoImportFileExcludePatterns": [
"**/node_modules/@types/node"
],
// Extensions
//////////////////////////////////////////////////////////////////////////////
// Better Comments
/////////////////////////////////////////////
// This setting will control whether multiline comments are styled using the
// annotation tags. If false, multiline comments will be presented w/o decor.
"better-comments.multilineComments": true,
"better-comments.tags": [
{
"tag": "//",
"strikethrough": false
}
],
// Dprint
/////////////////////////////////////////////
"dprint.path": "~/.dprint/bin/dprint",
// EditorConfig (https://editorconfig.org/)
/////////////////////////////////////////////
// The following settings should be inherited from the .editorconfig file and
// need not be re-specified in this file: files.encoding, files.eol,
// files.insertFinalNewline, and files.trimTrailingWhitespace.
"editorconfig.generateAuto": false,
// ESLint (ESLint is a separate extension)
/////////////////////////////////////////////
// Whether the extension contributes a lint task to lint a whole workspace
// folder.
"eslint.lintTask.enable": true,
"eslint.format.enable": true,
"eslint.validate": [
"javascript",
"json",
"json5",
"jsonc",
"markdown",
"typescript"
],
"eslint.workingDirectories": [
"./"
],
// Remote
/////////////////////////////////////////////
"remote.SSH.defaultForwardedPorts": [
{
"remotePort": 2222
}
],
// cSpell
/////////////////////////////////////////////
// The Language local to use when spell checking. "en" and "en-GB" are
// currently supported.
"cSpell.language": "en",
// Controls the maximum number of spelling errors per document.
"cSpell.maxNumberOfProblems": 100,
// Controls the number of suggestions shown.
"cSpell.numSuggestions": 8,
// The minimum length of a word before checking it against a dictionary.
"cSpell.minWordLength": 4,
// Enable / Disable the spell checker.
"cSpell.enabled": true,
// Enable / Disable compound words like 'errormessage'.
"cSpell.allowCompoundWords": true,
// Words to be ignored and not suggested.
"cSpell.ignoreWords": [
"behaviour"
],
// Specify paths/files to ignore.
"cSpell.ignorePaths": [
".git/",
"node_modules/"
],
// Set custom workspace dictionaries.
// Define custom dictionaries to be included by default. If `addWords` is true
// words will be added to this dictionary.
"cSpell.customDictionaries": {
"project-terms": {
"name": "project-terms",
"path": "${workspaceRoot}/project-terms.txt",
"description": "Terms used in this project",
"addWords": true
}
}
}