1 // Note: VS Code's setting precedence is `.vscode/` > `cts.code-workspace` > global user settings.
15 "esbenp.prettier-vscode"
19 "editor.defaultFormatter": "esbenp.prettier-vscode",
20 "editor.detectIndentation": false,
21 "editor.rulers": [100],
23 "files.insertFinalNewline": true,
24 "files.trimFinalNewlines": true,
25 "files.trimTrailingWhitespace": true,
31 "deploy_key.enc": true,
37 "package-lock.json": true
39 // Configure VSCode to use the right style when automatically adding imports on autocomplete.
40 "typescript.preferences.importModuleSpecifier": "relative",
41 "typescript.preferences.importModuleSpecifierEnding": "js",
42 "typescript.preferences.quoteStyle": "single",
43 "typescript.tsdk": "cts/node_modules/typescript/lib"
48 // Only supports "shell" and "process" tasks.
49 // https://code.visualstudio.com/docs/editor/multi-root-workspaces#_workspace-task-configuration
51 // Use "group": "build" instead of "test" so it's easy to access from cmd-shift-B.
54 "detail": "Run all presubmit checks",
57 "command": "npm run test",
62 "label": "npm: check",
63 "detail": "Just typecheck",
66 "command": "npm run check",
67 "problemMatcher": ["$tsc"]
71 "label": "npm: standalone",
72 "detail": "Build standalone and typecheck",
75 "command": "npm run standalone",
81 "detail": "Build for WPT and typecheck",
84 "command": "npm run wpt",
89 "label": "npm: unittest",
90 "detail": "Build standalone, typecheck, and unittest",
93 "command": "npm run unittest",
98 "label": "npm: tsdoc",
99 "detail": "Build docs/tsdoc/",
102 "command": "npm run tsdoc",
107 "label": "grunt: run:lint",
108 "detail": "Run eslint",
111 "command": "npx grunt run:lint",
112 "problemMatcher": ["$eslint-stylish"]