-
-
Notifications
You must be signed in to change notification settings - Fork 182
/
kpi.code-workspace
74 lines (67 loc) · 2.33 KB
/
kpi.code-workspace
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
{
"folders": [
{
"path": "."
}
],
"extensions": {
"recommendations": [
"editorconfig.editorconfig", // EditorConfig
// Linters and Formatters
"ms-python.black-formatter", // Black (also installs MS Pylance)*
"dbaeumer.vscode-eslint", // ESLint
"rvest.vs-code-prettier-eslint", // Prettier
"stylelint.vscode-stylelint", // Stylelint
"freewil.vscode-coffeelint2", // Coffeelint
// Status Bar Toggle for Format on Save
"tombonnike.vscode-status-bar-format-toggle", // Formatting Toggle
// Syntax Support
"almahdi.code-django", // Django templates
]
},
"settings": {
// Black
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
// Prettier
"[typescript][typescriptreact][javascript][javascriptreact]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
// Stylelint
"stylelint.validate": ["css", "scss"],
"css.validate": false,
"scss.validate": false,
// Formatting Toggle
"formattingToggle.affects": [
"editor.formatOnSave",
// NOTE: 6/25/24
//
// "source.fixAll.*" has changed from true/false to "explicit"/"never".
//
// - "explicit" - fka true - Run Action on Save
// - "always" - (new option) - Run Action on Save OR Auto-Save
// - "never" - fka false - Don't run action on save
//
// Formatting toggle doesn't support these, so I'm commenting this out:
//
// "editor.codeActionsOnSave.source.fixAll.eslint",
// "editor.codeActionsOnSave.source.fixAll.stylelint",
//
// Now, if you want to toggle auto-fix, these are the
// relevant settings in your User settings.json:
//
// "editor.codeActionsOnSave": {
// "source.fixAll.eslint": "explicit", // "never"
// "source.fixAll.stylelint": "explicit", // "never"
// },
//
// Also useful: Run Prettier only on your "modified" lines
//
// "editor.formatOnSaveMode": "modifications" // or "file"
],
// Use locally-installed TypeScript instance (supports plugins in tsconfig)
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
},
}