settings.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {
  2. "eslint.nodePath": "config/eslint-config/node_modules/eslint",
  3. "prettier.prettierPath": "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": "dbaeumer.vscode-eslint",
  10. "editor.codeActionsOnSave": {
  11. "source.fixAll": "explicit",
  12. "source.fixAll.eslint": "explicit"
  13. },
  14. "search.followSymlinks": false,
  15. "search.exclude": {
  16. "**/node_modules": true,
  17. "**/.nyc_output": true,
  18. "**/.rush": true,
  19. "**/pnpm-lock.yaml": true,
  20. "**/CHANGELOG.json": true,
  21. "**/CHANGELOG.md": true,
  22. "common/changes": true,
  23. "**/output": true,
  24. "**/lib": true,
  25. "**/dist": true,
  26. "**/coverage": true,
  27. "common/temp": true
  28. },
  29. "eslint.workingDirectories": [
  30. {
  31. "mode": "auto"
  32. }
  33. ],
  34. "files.defaultLanguage": "plaintext",
  35. "files.associations": {
  36. ".code-workspace": "jsonc",
  37. ".babelrc": "json",
  38. ".eslintrc": "jsonc",
  39. ".eslintrc*.json": "jsonc",
  40. ".stylelintrc": "jsonc",
  41. "stylelintrc": "jsonc",
  42. "*.json": "jsonc",
  43. "package.json": "json",
  44. ".htmlhintrc": "jsonc",
  45. "htmlhintrc": "jsonc",
  46. "Procfile*": "shellscript",
  47. "README": "markdown",
  48. "**/coverage/**/*.*": "plaintext",
  49. "OWNERS": "yaml",
  50. "**/pnpm-lock.yaml": "plaintext",
  51. "**/dist/**": "plaintext",
  52. "**/dist_*/**": "plaintext",
  53. "*.map": "plaintext",
  54. "*.log": "plaintext"
  55. },
  56. "files.exclude": {
  57. "**/.git": true,
  58. "**/.svn": true,
  59. "**/.hg": true,
  60. "**/CVS": true,
  61. "**/.DS_Store": true,
  62. "**/Thumbs.db": true,
  63. "**/.rush": true
  64. },
  65. "files.watcherExclude": {
  66. "**/.git/objects/**": true,
  67. "**/.git/subtree-cache/**": true,
  68. "**/node_modules/*/**": true
  69. },
  70. "search.useIgnoreFiles": true,
  71. //
  72. "editor.rulers": [
  73. 80,
  74. 120
  75. ],
  76. "files.eol": "\n",
  77. "files.trimTrailingWhitespace": true,
  78. "files.insertFinalNewline": true,
  79. "cSpell.diagnosticLevel": "Warning",
  80. "eslint.probe": [
  81. "javascript",
  82. "javascriptreact",
  83. "typescript",
  84. "typescriptreact"
  85. ],
  86. "eslint.format.enable": true,
  87. "eslint.lintTask.enable": true,
  88. "javascript.validate.enable": false,
  89. "typescript.validate.enable": true,
  90. "typescript.tsdk": "config/ts-config/node_modules/typescript/lib",
  91. "typescript.tsserver.maxTsServerMemory": 8192,
  92. // "typescript.tsserver.experimental.enableProjectDiagnostics": true,
  93. "typescript.tsserver.watchOptions": {
  94. "fallbackPolling": "dynamicPriorityPolling",
  95. "synchronousWatchDirectory": false,
  96. "watchDirectory": "dynamicPriorityPolling",
  97. "watchFile": "useFsEventsOnParentDirectory"
  98. },
  99. "css.validate": false,
  100. "scss.validate": false,
  101. "less.validate": false,
  102. "emmet.triggerExpansionOnTab": true,
  103. "[yaml]": {
  104. "editor.defaultFormatter": "esbenp.prettier-vscode"
  105. },
  106. "[css]": {
  107. "editor.defaultFormatter": "esbenp.prettier-vscode"
  108. },
  109. "[html]": {
  110. "editor.defaultFormatter": "esbenp.prettier-vscode"
  111. },
  112. "[json]": {
  113. "editor.defaultFormatter": "vscode.json-language-features"
  114. },
  115. "[jsonc]": {
  116. "editor.defaultFormatter": "vscode.json-language-features"
  117. },
  118. "[less]": {
  119. "editor.defaultFormatter": "vscode.css-language-features"
  120. },
  121. "[typescript]": {
  122. "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  123. },
  124. "[javascriptreact]": {
  125. "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  126. },
  127. "[typescriptreact]": {
  128. "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  129. },
  130. "[ignore]": {
  131. "editor.defaultFormatter": "foxundermoon.shell-format"
  132. },
  133. "[shellscript]": {
  134. "editor.defaultFormatter": "foxundermoon.shell-format"
  135. },
  136. "[dotenv]": {
  137. "editor.defaultFormatter": "foxundermoon.shell-format"
  138. },
  139. "[svg]": {
  140. "editor.defaultFormatter": "jock.svg"
  141. },
  142. "[mdx]": {
  143. "editor.defaultFormatter": "unifiedjs.vscode-mdx"
  144. },
  145. "cSpell.words": [
  146. "Twoway"
  147. ]
  148. }