|
| 1 | +{ |
| 2 | + // ====================================== |
| 3 | + // General Editor Settings |
| 4 | + // ====================================== |
| 5 | + |
| 6 | + // Use 4 spaces for indentation |
| 7 | + "editor.tabSize": 4, |
| 8 | + "editor.insertSpaces": true, |
| 9 | + |
| 10 | + // Automatically wrap long lines instead of horizontal scrolling |
| 11 | + "editor.wordWrap": "off", |
| 12 | + |
| 13 | + // Always use LF for line endings (consistent across OS) |
| 14 | + "files.eol": "\n", |
| 15 | + |
| 16 | + // Remove trailing whitespaces and ensure a final newline |
| 17 | + "files.trimTrailingWhitespace": true, |
| 18 | + "files.insertFinalNewline": true, |
| 19 | + |
| 20 | + // ====================================== |
| 21 | + // Code Formatting (Prettier) |
| 22 | + // ====================================== |
| 23 | + |
| 24 | + // Use Prettier as the default formatter |
| 25 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 26 | + |
| 27 | + // Automatically format code on save |
| 28 | + "editor.formatOnSave": true, |
| 29 | + |
| 30 | + // Prettier rules for consistent code style |
| 31 | + "prettier.semi": true, // Always use semicolons |
| 32 | + "prettier.singleQuote": false, // Prefer double quotes |
| 33 | + "prettier.trailingComma": "all", // Add trailing commas wherever possible |
| 34 | + "prettier.printWidth": 100, // Wrap lines at 100 characters |
| 35 | + "prettier.tabWidth": 4, // 4-space indentation |
| 36 | + |
| 37 | + // ====================================== |
| 38 | + // Linting (ESLint) |
| 39 | + // ====================================== |
| 40 | + |
| 41 | + "eslint.enable": true, |
| 42 | + "eslint.validate": ["javascript"], // Validate only JavaScript files |
| 43 | + "eslint.alwaysShowStatus": true, // Always show ESLint status in the bottom bar |
| 44 | + |
| 45 | + // ====================================== |
| 46 | + // Testing (Jest) |
| 47 | + // ====================================== |
| 48 | + |
| 49 | + // Automatically run Jest tests in watch mode for modified files |
| 50 | + "jest.autoRun": { |
| 51 | + "watch": false, // Disable global watch mode |
| 52 | + "onSave": "test-file" // Run tests only for the saved file |
| 53 | + }, |
| 54 | + |
| 55 | + // Prevent VS Code from opening the Peek View for failed tests |
| 56 | + "testing.automaticallyOpenPeekView": "never", |
| 57 | + |
| 58 | + // ====================================== |
| 59 | + // Integrated Terminal & Node Environment |
| 60 | + // ====================================== |
| 61 | + |
| 62 | + // Set NODE_ENV to development for integrated terminals |
| 63 | + "terminal.integrated.env.linux": { |
| 64 | + "NODE_ENV": "development" |
| 65 | + }, |
| 66 | + "terminal.integrated.env.windows": { |
| 67 | + "NODE_ENV": "development" |
| 68 | + }, |
| 69 | + |
| 70 | + // Prefer Git Bash as the default terminal on Windows |
| 71 | + "terminal.integrated.defaultProfile.windows": "Git Bash", |
| 72 | + |
| 73 | + // ====================================== |
| 74 | + // Git & Source Control |
| 75 | + // ====================================== |
| 76 | + |
| 77 | + // Allow committing without staging all changes manually |
| 78 | + "git.enableSmartCommit": true, |
| 79 | + |
| 80 | + // Automatically fetch from remote repositories |
| 81 | + "git.autofetch": true, |
| 82 | + |
| 83 | + // Skip confirmation prompts when syncing changes |
| 84 | + "git.confirmSync": false, |
| 85 | + |
| 86 | + // Automatically sync after every commit |
| 87 | + "git.postCommitCommand": "sync", |
| 88 | + |
| 89 | + // ====================================== |
| 90 | + // IntelliSense & JavaScript Settings |
| 91 | + // ====================================== |
| 92 | + |
| 93 | + // Enable auto imports and refactoring for JS |
| 94 | + "javascript.suggest.autoImports": true, |
| 95 | + |
| 96 | + // Automatically update imports when moving/renaming files |
| 97 | + "javascript.updateImportsOnFileMove.enabled": "always", |
| 98 | + |
| 99 | + // Disable TypeScript validation (pure JS project) |
| 100 | + "typescript.validate.enable": false, |
| 101 | + |
| 102 | + // Enable Emmet abbreviations in JS files |
| 103 | + "emmet.includeLanguages": { |
| 104 | + "javascript": "javascriptreact" |
| 105 | + }, |
| 106 | + |
| 107 | + // ====================================== |
| 108 | + // Workspace Cleanliness & Search |
| 109 | + // ====================================== |
| 110 | + |
| 111 | + // Exclude non-relevant directories from global search |
| 112 | + "search.exclude": { |
| 113 | + "**/node_modules": true, |
| 114 | + "**/coverage": true, |
| 115 | + "**/dist": true, |
| 116 | + "**/.git": true |
| 117 | + }, |
| 118 | + |
| 119 | + // ====================================== |
| 120 | + // Conventional Commits / Husky Support |
| 121 | + // ====================================== |
| 122 | + |
| 123 | + // Optional: assist with commit scopes and structured messages |
| 124 | + "conventionalCommits.scopes": ["bot", "ci", "core", "queue", "docs"], |
| 125 | + "conventionalCommits.promptBody": true, |
| 126 | + "conventionalCommits.promptFooter": true, |
| 127 | + |
| 128 | + "workbench.colorCustomizations": { |
| 129 | + "titleBar.activeBackground": "#113963", |
| 130 | + "titleBar.activeForeground": "#e7e7e7", |
| 131 | + "titleBar.inactiveBackground": "#0f3459", |
| 132 | + "titleBar.inactiveForeground": "#e7e7e799" |
| 133 | + } |
| 134 | +} |
0 commit comments