mirror of
https://github.com/placeholder-soft/web.git
synced 2026-01-12 17:02:57 +08:00
"// use ⌘-K S to format without saving": It might be clearer to say "// use ⌘-K S (or Ctrl-K S) to format without saving", to ensure users who aren't using macOS can also understand the keyboard shortcut.
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
// Prettier
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true, // use ⌘-K S (or Ctrl-K S) to format without saving
|
|
|
|
// Disable built-in formatters
|
|
"html.format.enable": false,
|
|
"json.format.enable": false,
|
|
|
|
// TypeScript
|
|
"javascript.validate.enable": false,
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"typescript.preferences.importModuleSpecifier": "non-relative",
|
|
"typescript.preferences.quoteStyle": "single",
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[javascriptreact]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
|
|
"eslint.packageManager": "yarn",
|
|
"eslint.useESLintClass": true,
|
|
"eslint.workingDirectories": [
|
|
{ "pattern": "apps/*" },
|
|
{ "pattern": "examples/*" },
|
|
{ "pattern": "libs/*" },
|
|
{ "pattern": "packages/*" }
|
|
],
|
|
"[json]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[svg]": {
|
|
"editor.defaultFormatter": "jock.svg"
|
|
}
|
|
}
|