|
| 1 | +{ |
| 2 | + "eslint.nodePath": "frontend/config/eslint-config/node_modules/eslint", |
| 3 | + "prettier.prettierPath": "frontend/config/eslint-config/node_modules/prettier", |
| 4 | + "editor.tabSize": 2, |
| 5 | + "editor.insertSpaces": true, |
| 6 | + "editor.formatOnSave": true, |
| 7 | + "editor.formatOnType": false, |
| 8 | + "editor.formatOnPaste": false, |
| 9 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 10 | + "editor.codeActionsOnSave": { |
| 11 | + "source.fixAll": "never", |
| 12 | + "source.fixAll.eslint": "never", |
| 13 | + "source.removeUnused": "never", |
| 14 | + "source.organizeImports": "never" |
| 15 | + // "source.sortImports": "always" |
| 16 | + }, |
| 17 | + "editor.formatOnSaveMode": "modificationsIfAvailable", |
| 18 | + "search.followSymlinks": false, |
| 19 | + "search.exclude": { |
| 20 | + "**/node_modules": true, |
| 21 | + "**/.nyc_output": true, |
| 22 | + "**/.rush": true, |
| 23 | + "**/pnpm-lock.yaml": true, |
| 24 | + "**/CHANGELOG.json": true, |
| 25 | + "**/CHANGELOG.md": true, |
| 26 | + "common/changes": true, |
| 27 | + "**/output": true, |
| 28 | + "**/lib": true, |
| 29 | + "**/rush-logs": true, |
| 30 | + "**/dist": true, |
| 31 | + "**/coverage": true, |
| 32 | + "common/temp": true |
| 33 | + }, |
| 34 | + "eslint.workingDirectories": [ |
| 35 | + { |
| 36 | + "mode": "auto" |
| 37 | + } |
| 38 | + ], |
| 39 | + "files.defaultLanguage": "plaintext", |
| 40 | + "files.associations": { |
| 41 | + ".code-workspace": "jsonc", |
| 42 | + ".babelrc": "json", |
| 43 | + ".eslintrc": "jsonc", |
| 44 | + ".eslintrc*.json": "jsonc", |
| 45 | + ".stylelintrc": "javascript", |
| 46 | + "stylelintrc": "jsonc", |
| 47 | + "*.json": "jsonc", |
| 48 | + "package.json": "json", |
| 49 | + ".htmlhintrc": "jsonc", |
| 50 | + "htmlhintrc": "jsonc", |
| 51 | + "Procfile*": "shellscript", |
| 52 | + "README": "markdown", |
| 53 | + "**/coverage/**/*.*": "plaintext", |
| 54 | + "OWNERS": "yaml", |
| 55 | + // Set the pnpm-lock file to plaintext to avoid parsing; otherwise, VSCode may freeze when opening the file |
| 56 | + "**/pnpm-lock.yaml": "plaintext", |
| 57 | + "**/dist/**": "plaintext", |
| 58 | + "**/dist_*/**": "plaintext", |
| 59 | + "*.map": "plaintext", |
| 60 | + "*.log": "plaintext" |
| 61 | + }, |
| 62 | + "files.exclude": { |
| 63 | + "**/.git": true, |
| 64 | + "**/.svn": true, |
| 65 | + "**/.hg": true, |
| 66 | + "**/CVS": true, |
| 67 | + "**/.DS_Store": true, |
| 68 | + "**/Thumbs.db": true, |
| 69 | + "**/.rush": true, |
| 70 | + "**/.swc": true |
| 71 | + }, |
| 72 | + "files.watcherExclude": { |
| 73 | + "**/.git/objects/**": true, |
| 74 | + "**/.git/subtree-cache/**": true, |
| 75 | + "**/node_modules/*/**": true |
| 76 | + }, |
| 77 | + "search.useIgnoreFiles": true, |
| 78 | + // |
| 79 | + "editor.rulers": [80, 120], |
| 80 | + "files.eol": "\n", |
| 81 | + "files.trimTrailingWhitespace": true, |
| 82 | + "files.insertFinalNewline": true, |
| 83 | + "cSpell.diagnosticLevel": "Warning", |
| 84 | + "eslint.probe": [ |
| 85 | + "javascript", |
| 86 | + "javascriptreact", |
| 87 | + "typescript", |
| 88 | + "typescriptreact" |
| 89 | + ], |
| 90 | + "editor.semanticHighlighting.enabled": false, |
| 91 | + "eslint.format.enable": false, |
| 92 | + "eslint.enable": true, |
| 93 | + "eslint.useFlatConfig": true, |
| 94 | + "eslint.codeActionsOnSave.mode": "problems", |
| 95 | + "eslint.lintTask.enable": false, |
| 96 | + "javascript.validate.enable": false, |
| 97 | + "typescript.tsdk": "frontend/config/ts-config/node_modules/typescript/lib", |
| 98 | + "typescript.enablePromptUseWorkspaceTsdk": true, |
| 99 | + "typescript.disableAutomaticTypeAcquisition": true, |
| 100 | + "typescript.format.enable": false, |
| 101 | + "typescript.referencesCodeLens.enabled": false, |
| 102 | + "typescript.preferGoToSourceDefinition": true, |
| 103 | + "typescript.updateImportsOnFileMove.enabled": "never", |
| 104 | + // tsserver logs are not automatically deleted and accumulate over time, causing disk space issues, so disabled by default |
| 105 | + "typescript.tsserver.log": "off", |
| 106 | + "typescript.tsserver.experimental.enableProjectDiagnostics": false, |
| 107 | + "typescript.workspaceSymbols.excludeLibrarySymbols": true, |
| 108 | + "editor.minimap.enabled": true, |
| 109 | + "typescript.preferences.includePackageJsonAutoImports": "off", |
| 110 | + "typescript.suggest.autoImports": true, |
| 111 | + "typescript.tsserver.maxTsServerMemory": 10240, |
| 112 | + "typescript.tsserver.enableRegionDiagnostics": false, |
| 113 | + "typescript.tsserver.watchOptions": { |
| 114 | + "fallbackPolling": "dynamicPriorityPolling", |
| 115 | + "synchronousWatchDirectory": true, |
| 116 | + "watchDirectory": "useFsEvents", |
| 117 | + "watchFile": "useFsEventsOnParentDirectory", |
| 118 | + "excludeDirectories": ["/**/node_modules"], |
| 119 | + "excludeLibrarySymbols": true, |
| 120 | + "excludeFiles": ["/**/node_modules/**"] |
| 121 | + }, |
| 122 | + "css.validate": false, |
| 123 | + "scss.validate": false, |
| 124 | + "less.validate": false, |
| 125 | + "stylelint.enable": true, |
| 126 | + "stylelint.validate": ["css", "scss", "less"], |
| 127 | + "stylelint.stylelintPath": "frontend/config/stylelint-config/node_modules/stylelint", |
| 128 | + "emmet.triggerExpansionOnTab": true, |
| 129 | + "[typescript]": { |
| 130 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 131 | + }, |
| 132 | + "[yaml]": { |
| 133 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 134 | + }, |
| 135 | + "[css]": { |
| 136 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 137 | + }, |
| 138 | + "[html]": { |
| 139 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 140 | + }, |
| 141 | + "[javascript]": { |
| 142 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 143 | + }, |
| 144 | + "[javascriptreact]": { |
| 145 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 146 | + }, |
| 147 | + "[json]": { |
| 148 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 149 | + }, |
| 150 | + "[jsonc]": { |
| 151 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 152 | + }, |
| 153 | + "[less]": { |
| 154 | + "editor.defaultFormatter": "stylelint.vscode-stylelint" |
| 155 | + }, |
| 156 | + "[scss]": { |
| 157 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 158 | + }, |
| 159 | + "[typescriptreact]": { |
| 160 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 161 | + }, |
| 162 | + "[ignore]": { |
| 163 | + "editor.defaultFormatter": "foxundermoon.shell-format" |
| 164 | + }, |
| 165 | + "[shellscript]": { |
| 166 | + "editor.defaultFormatter": "foxundermoon.shell-format" |
| 167 | + }, |
| 168 | + "[dotenv]": { |
| 169 | + "editor.defaultFormatter": "foxundermoon.shell-format" |
| 170 | + }, |
| 171 | + "[svg]": { |
| 172 | + "editor.defaultFormatter": "jock.svg" |
| 173 | + }, |
| 174 | + "svg.preview.background": "white", |
| 175 | + "[xml]": { |
| 176 | + "editor.defaultFormatter": "mblode.pretty-formatter" |
| 177 | + }, |
| 178 | + "[sql]": { |
| 179 | + "editor.defaultFormatter": "adpyke.vscode-sql-formatter" |
| 180 | + }, |
| 181 | + "git.openRepositoryInParentFolders": "always", |
| 182 | + "references.preferredLocation": "view" |
| 183 | +} |
0 commit comments